Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class LifecycleEventArgs extends EventArgs |
||
14 | { |
||
15 | /** @var ObjectManager */ |
||
16 | private $objectManager; |
||
17 | |||
18 | /** @var object */ |
||
19 | private $object; |
||
20 | |||
21 | /** |
||
22 | * @param object $object |
||
23 | */ |
||
24 | public function __construct($object, ObjectManager $objectManager) |
||
25 | { |
||
26 | $this->object = $object; |
||
27 | $this->objectManager = $objectManager; |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Retrieves the associated entity. |
||
32 | * |
||
33 | * @deprecated |
||
34 | * |
||
35 | * @return object |
||
36 | */ |
||
37 | public function getEntity() |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Retrieves the associated object. |
||
44 | * |
||
45 | * @return object |
||
46 | */ |
||
47 | public function getObject() |
||
48 | { |
||
49 | return $this->object; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * Retrieves the associated ObjectManager. |
||
54 | * |
||
55 | * @return ObjectManager |
||
56 | */ |
||
57 | public function getObjectManager() |
||
60 | } |
||
61 | } |
||
64 |