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