1 | <?php |
||
12 | final class VenueSearchBuilder |
||
13 | { |
||
14 | /** |
||
15 | * @var array |
||
16 | */ |
||
17 | private $query; |
||
18 | |||
19 | private function __construct() |
||
25 | |||
26 | /** |
||
27 | * @return VenueSearchBuilder |
||
28 | */ |
||
29 | public static function create(): self |
||
33 | |||
34 | /** |
||
35 | * @param int $page |
||
36 | * |
||
37 | * @return VenueSearchBuilder |
||
38 | */ |
||
39 | public function page(int $page): self |
||
45 | |||
46 | /** |
||
47 | * @param string $name |
||
48 | * |
||
49 | * @return VenueSearchBuilder |
||
50 | */ |
||
51 | public function withName(string $name): self |
||
57 | |||
58 | /** |
||
59 | * @param string $name |
||
60 | * |
||
61 | * @return VenueSearchBuilder |
||
62 | */ |
||
63 | public function withCity(string $name): self |
||
69 | |||
70 | /** |
||
71 | * @param int $id |
||
72 | * |
||
73 | * @return VenueSearchBuilder |
||
74 | */ |
||
75 | public function withCityId(int $id): self |
||
81 | |||
82 | /** |
||
83 | * @param string $country |
||
84 | * |
||
85 | * @return VenueSearchBuilder |
||
86 | */ |
||
87 | public function withCountry(string $country): self |
||
93 | |||
94 | /** |
||
95 | * @param string $name |
||
96 | * |
||
97 | * @return VenueSearchBuilder |
||
98 | */ |
||
99 | public function withState(string $name): self |
||
105 | |||
106 | /** |
||
107 | * @param string $code |
||
108 | * |
||
109 | * @return VenueSearchBuilder |
||
110 | */ |
||
111 | public function withStateCode(string $code): self |
||
117 | |||
118 | /** |
||
119 | * @return array |
||
120 | */ |
||
121 | public function getQuery(): array |
||
125 | } |
||
126 |