2009-07-18 15:41:37 +04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\ORM\Event;
|
|
|
|
|
|
|
|
class LifecycleEventArgs extends \Doctrine\Common\EventArgs
|
|
|
|
{
|
|
|
|
private $_em;
|
|
|
|
private $_entity;
|
|
|
|
|
2009-07-18 22:06:30 +04:00
|
|
|
public function __construct($entity)
|
2009-07-18 15:41:37 +04:00
|
|
|
{
|
|
|
|
$this->_entity = $entity;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getEntity()
|
|
|
|
{
|
|
|
|
return $this->_entity;
|
|
|
|
}
|
2009-12-18 15:30:19 +03:00
|
|
|
|
|
|
|
public function getEntityManager()
|
|
|
|
{
|
|
|
|
return $this->_em;
|
|
|
|
}
|
2009-07-18 15:41:37 +04:00
|
|
|
}
|