/** * @param string $className * @param ObjectManager $objectManager */ public function __construct($className, ObjectManager $objectManager) { parent::__construct($objectManager); $this->className = $className; }
/** * @param PersistentCollectionInterface $collection * @param DocumentManager $dm */ public function __construct(PersistentCollectionInterface $collection, DocumentManager $dm) { parent::__construct($dm); $this->collection = $collection; }
/** * RegisterDriverMetadataEventArgs constructor. * * @param DriverFactory $factory * @param ObjectManager $objectManager */ public function __construct(DriverFactory $driverFactory, ObjectManager $objectManager) { parent::__construct($objectManager); $this->driverFactory = $driverFactory; }