. */ namespace Doctrine\ORM\Event; use Doctrine\Common\EventArgs; use Doctrine\ORM\Mapping\ClassMetadataInfo; use Doctrine\ORM\EntityManager; /** * Class that holds event arguments for a loadMetadata event. * * @author Jonathan H. Wage * @since 2.0 */ class LoadClassMetadataEventArgs extends EventArgs { /** * @var Doctrine\ORM\Mapping\ClassMetadata */ private $classMetadata; /** * @var Doctrine\ORM\EntityManager */ private $em; /** * Constructor. * * @param Doctrine\ORM\Mapping\ClassMetadataInfo $classMetadata * @param Doctrine\ORM\EntityManager $em */ public function __construct(ClassMetadataInfo $classMetadata, EntityManager $em) { $this->classMetadata = $classMetadata; $this->em = $em; } /** * Retrieve associated ClassMetadata. * * @return Doctrine\ORM\Mapping\ClassMetadataInfo */ public function getClassMetadata() { return $this->classMetadata; } /** * Retrieve associated EntityManager. * * @return Doctrine\ORM\EntityManager */ public function getEntityManager() { return $this->em; } }