Total Complexity | 5 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 83.33% |
Changes | 0 |
1 | <?php |
||
16 | class LifecycleEventArgs extends BaseLifecycleEventArgs |
||
17 | { |
||
18 | /** @var object */ |
||
19 | private $entity; |
||
20 | |||
21 | /** @var EntityManagerInterface */ |
||
22 | private $entityManager; |
||
23 | |||
24 | 142 | public function __construct(object $entity, EntityManagerInterface $entityManager) |
|
25 | { |
||
26 | 142 | $this->entity = $entity; |
|
27 | 142 | $this->entityManager = $entityManager; |
|
28 | 142 | } |
|
29 | |||
30 | 2 | public function getObject() : object |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * Retrieves associated Entity. |
||
37 | */ |
||
38 | 1 | public function getEntity() |
|
39 | { |
||
40 | 1 | return $this->entity; |
|
41 | } |
||
42 | |||
43 | public function getObjectManager() |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Retrieves associated EntityManager. |
||
50 | */ |
||
51 | 1 | public function getEntityManager() |
|
54 | } |
||
55 | } |
||
56 |