public function __construct(ObjectGeneratorInterface $generator = null) { $this->generator = $generator; }