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