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