diff -r 000000000000 -r 7f95f8617b0b vendor/doctrine/lib/Doctrine/ORM/Event/LifecycleEventArgs.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/doctrine/lib/Doctrine/ORM/Event/LifecycleEventArgs.php Sat Sep 24 15:40:41 2011 +0200 @@ -0,0 +1,60 @@ +. +*/ + +namespace Doctrine\ORM\Event; + +/** + * Lifecycle Events are triggered by the UnitOfWork during lifecycle transitions + * of entities. + * + * @since 2.0 + * @author Roman Borschel + * @author Benjamin Eberlei + */ +class LifecycleEventArgs extends \Doctrine\Common\EventArgs +{ + /** + * @var EntityManager + */ + private $_em; + + /** + * @var object + */ + private $_entity; + + public function __construct($entity, $em) + { + $this->_entity = $entity; + $this->_em = $em; + } + + public function getEntity() + { + return $this->_entity; + } + + /** + * @return EntityManager + */ + public function getEntityManager() + { + return $this->_em; + } +} \ No newline at end of file