1 | <?php |
||
9 | class GetSeatsHandler |
||
10 | { |
||
11 | /** @var SeatRepository */ |
||
12 | private $seatRepository; |
||
13 | |||
14 | /** |
||
15 | * @param SeatRepository $seatRepository |
||
16 | */ |
||
17 | public function __construct( |
||
22 | |||
23 | /** |
||
24 | * @param PriceCategory $priceCategory |
||
25 | * |
||
26 | * @return Seat[] |
||
27 | */ |
||
28 | public function handle(PriceCategory $priceCategory): array |
||
32 | |||
33 | /** |
||
34 | * @param PriceCategory $priceCategory |
||
35 | * |
||
36 | * @return Seat[] |
||
37 | */ |
||
38 | protected function getSeatsForPriceCategory(PriceCategory $priceCategory): array |
||
58 | |||
59 | /** |
||
60 | * @param PriceCategory $priceCategory |
||
61 | * |
||
62 | * @return array |
||
63 | */ |
||
64 | protected function parsePriceCategoryPlaces(PriceCategory $priceCategory): array |
||
74 | |||
75 | /** |
||
76 | * @param string $incomingStrPlaces |
||
77 | * |
||
78 | * @return array |
||
79 | */ |
||
80 | protected function getPlacesFromString(string $incomingStrPlaces = null): array |
||
104 | |||
105 | /** |
||
106 | * @param array $array |
||
107 | * |
||
108 | * @return array |
||
109 | */ |
||
110 | protected function removeEmptyElements(array $array): array |
||
116 | |||
117 | /** |
||
118 | * @param array $places |
||
119 | * @throws \Exception |
||
120 | */ |
||
121 | protected function validatePlaces(array $places) |
||
127 | } |
||
128 |