| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class PreLoadEventArgs extends LifecycleEventArgs |
||
| 13 | { |
||
| 14 | /** @var mixed[] */ |
||
| 15 | private $data; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param object $object |
||
| 19 | * @param mixed[] $data Array of data to be loaded and hydrated |
||
| 20 | */ |
||
| 21 | 18 | public function __construct($object, ObjectManagerInterface $objectManager, array &$data) |
|
| 22 | { |
||
| 23 | 18 | parent::__construct($object, $objectManager); |
|
| 24 | 18 | $this->data = &$data; |
|
| 25 | 18 | } |
|
| 26 | |||
| 27 | /** |
||
| 28 | * Get the array of data to be loaded and hydrated. |
||
| 29 | * |
||
| 30 | * @return mixed[] |
||
| 31 | */ |
||
| 32 | 1 | public function &getData() : array |
|
| 35 | } |
||
| 36 | } |
||
| 37 |