Total Complexity | 4 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
11 | class OnClearEventArgs extends EventArgs |
||
12 | { |
||
13 | /** @var ObjectManager */ |
||
14 | private $objectManager; |
||
15 | |||
16 | /** @var string|null */ |
||
17 | private $entityClass; |
||
18 | |||
19 | /** |
||
20 | * @param ObjectManager $objectManager The object manager. |
||
21 | * @param string|null $entityClass The optional entity class. |
||
22 | */ |
||
23 | public function __construct($objectManager, $entityClass = null) |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Retrieves the associated ObjectManager. |
||
31 | * |
||
32 | * @return ObjectManager |
||
33 | */ |
||
34 | public function getObjectManager() |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Returns the name of the entity class that is cleared, or null if all are cleared. |
||
41 | * |
||
42 | * @return string|null |
||
43 | */ |
||
44 | public function getEntityClass() |
||
45 | { |
||
46 | return $this->entityClass; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * Returns whether this event clears all entities. |
||
51 | * |
||
52 | * @return bool |
||
53 | */ |
||
54 | public function clearsAllEntities() |
||
57 | } |
||
58 | } |
||
59 |