1
0
mirror of synced 2025-02-09 00:39:25 +03:00
doctrine2/lib/Doctrine/ORM/Event/CleanPostFlushEventArgs.php

35 lines
678 B
PHP

<?php
namespace Doctrine\ORM\Event;
use Doctrine\Common\EventArgs;
use Doctrine\ORM\EntityManagerInterface;
/**
* Event triggers in the end of flush after all actions and clears in uow
* Flush can be called inside listeners of this event
*/
class CleanPostFlushEventArgs extends EventArgs
{
/**
* @var EntityManagerInterface
*/
private $em;
/**
* @param EntityManagerInterface $em
*/
public function __construct(EntityManagerInterface $em)
{
$this->em = $em;
}
/**
* @return EntityManagerInterface
*/
public function getEntityManager(): EntityManagerInterface
{
return $this->em;
}
}