for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?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;