| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | trait HasPlaces |
||
| 10 | { |
||
| 11 | protected $places = []; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @return array |
||
| 15 | */ |
||
| 16 | public function getPlaces(): array |
||
| 17 | { |
||
| 18 | $this->checkBuild(); |
||
|
|
|||
| 19 | return $this->places; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param array $places |
||
| 24 | */ |
||
| 25 | public function setPlaces(array $places): void |
||
| 26 | { |
||
| 27 | $this->places = $places; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function addPlace() |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return array |
||
| 37 | * @deprecated use getPlaces |
||
| 38 | */ |
||
| 39 | public function getItemsNames() |
||
| 42 | } |
||
| 43 | } |
||
| 44 |