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