| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | trait ArrayEntitiesTrait { |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Entities. |
||
| 24 | * |
||
| 25 | * @var object[] |
||
| 26 | */ |
||
| 27 | protected $entities; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get the entities. |
||
| 31 | * |
||
| 32 | * @return object[] Returns the entities. |
||
| 33 | */ |
||
| 34 | public function getEntities(): array { |
||
| 35 | return $this->entities; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Set the entities. |
||
| 40 | * |
||
| 41 | * @param object[] $entities The entities. |
||
| 42 | * @return self Returns this instance. |
||
| 43 | */ |
||
| 44 | protected function setEntities(array $entities): self { |
||
| 47 | } |
||
| 48 | } |
||
| 49 |