1 | <?php |
||
33 | class OnClearEventArgs extends \Doctrine\Common\EventArgs |
||
34 | { |
||
35 | /** |
||
36 | * @var EntityManagerInterface |
||
37 | */ |
||
38 | private $em; |
||
39 | |||
40 | /** |
||
41 | * @var string |
||
42 | */ |
||
43 | private $entityClass; |
||
44 | |||
45 | /** |
||
46 | * Constructor. |
||
47 | * |
||
48 | * @param EntityManagerInterface $em |
||
49 | * @param string|null $entityClass Optional entity class. |
||
50 | */ |
||
51 | 5 | public function __construct(EntityManagerInterface $em, $entityClass = null) |
|
56 | |||
57 | /** |
||
58 | * Retrieves associated EntityManager. |
||
59 | * |
||
60 | * @return \Doctrine\ORM\EntityManager |
||
61 | */ |
||
62 | public function getEntityManager() |
||
66 | |||
67 | /** |
||
68 | * Name of the entity class that is cleared, or empty if all are cleared. |
||
69 | * |
||
70 | * @return string|null |
||
71 | */ |
||
72 | public function getEntityClass() |
||
76 | |||
77 | /** |
||
78 | * Checks if event clears all entities. |
||
79 | * |
||
80 | * @return bool |
||
81 | */ |
||
82 | public function clearsAllEntities() |
||
86 | } |
||
87 |