public function __construct(FakerGenerator $faker = null) { $this->faker = null !== $faker ? $faker : FakerFactory::create(); }