Simple PHP dependency injection trait