. */ namespace Doctrine\ORM\Event; use Doctrine\Common\EventArgs; use Doctrine\ORM\EntityManager; /** * Provides event arguments for the preFlush event. * * @license http://www.opensource.org/licenses/mit-license.php MIT * @link www.doctrine-project.com * @since 2.0 * @author Roman Borschel * @author Benjamin Eberlei */ class PreFlushEventArgs extends EventArgs { /** * @var \Doctrine\ORM\EntityManager */ private $em; /** * Constructor. * * @param \Doctrine\ORM\EntityManager $em */ public function __construct(EntityManager $em) { $this->em = $em; } /** * @return \Doctrine\ORM\EntityManager */ public function getEntityManager() { return $this->em; } }