PHP dependency injector using traits and builder classes