/
home
/
obinna
/
html
/
restaurants
/
vendor
/
doctrine
/
mongodb-odm
/
lib
/
Doctrine
/
ODM
/
MongoDB
/
Event
/
Upload File
HOME
<?php declare(strict_types=1); namespace Doctrine\ODM\MongoDB\Event; use Doctrine\ODM\MongoDB\DocumentManager; use Doctrine\ODM\MongoDB\PersistentCollection\PersistentCollectionInterface; /** * Class that holds arguments for postCollectionLoad event. */ final class PostCollectionLoadEventArgs extends ManagerEventArgs { /** @var PersistentCollectionInterface */ private $collection; public function __construct(PersistentCollectionInterface $collection, DocumentManager $dm) { parent::__construct($dm); $this->collection = $collection; } /** * Gets collection that was just initialized (loaded). */ public function getCollection(): PersistentCollectionInterface { return $this->collection; } }