1
0
mirror of synced 2024-12-15 23:56:02 +03:00
doctrine2/lib/Doctrine/ORM/Event/LoadClassMetadataEventArgs.php

55 lines
994 B
PHP
Raw Normal View History

<?php
namespace Doctrine\ORM\Event;
use Doctrine\Common\EventArgs;
2010-11-18 22:45:44 +03:00
use Doctrine\ORM\Mapping\ClassMetadataInfo;
use Doctrine\ORM\EntityManager;
/**
* Class that holds event arguments for a loadMetadata event.
*
* @author Jonathan H. Wage <jonwage@gmail.com>
* @since 2.0
*/
class LoadClassMetadataEventArgs extends EventArgs
{
/**
* @var ClassMetadata
*/
private $classMetadata;
/**
* @var EntityManager
*/
private $em;
/**
2010-11-18 22:45:44 +03:00
* @param ClassMetadataInfo $classMetadata
* @param EntityManager $em
*/
2010-11-18 22:45:44 +03:00
public function __construct(ClassMetadataInfo $classMetadata, EntityManager $em)
{
$this->classMetadata = $classMetadata;
$this->em = $em;
}
/**
2010-11-18 22:45:44 +03:00
* @return ClassMetadataInfo
*/
public function getClassMetadata()
{
return $this->classMetadata;
}
/**
* @return EntityManager
*/
public function getEntityManager()
{
return $this->em;
}
}