1 | <?php |
||
8 | class VehiclesQuery |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | private $personId; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | private $vehicleId; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | private $after; |
||
24 | |||
25 | /** |
||
26 | * @var int |
||
27 | */ |
||
28 | private $offset; |
||
29 | |||
30 | /** |
||
31 | * @var int |
||
32 | */ |
||
33 | private $limit; |
||
34 | |||
35 | /** |
||
36 | * @param string|null $personId |
||
37 | * @param string|null $vehicleId |
||
38 | * @param string|null $after |
||
39 | * @param int|null $offset |
||
40 | * @param int|null $limit |
||
41 | */ |
||
42 | public function __construct(string $personId = null, string $vehicleId = null, string $after = null, int $offset = null, int $limit = null) |
||
50 | |||
51 | /** |
||
52 | * @return null|string |
||
53 | */ |
||
54 | public function getPersonId(): ?string |
||
58 | |||
59 | /** |
||
60 | * @return bool |
||
61 | */ |
||
62 | public function hasPersonId(): bool |
||
66 | |||
67 | /** |
||
68 | * @return null|string |
||
69 | */ |
||
70 | public function getVehicleId(): ?string |
||
74 | |||
75 | /** |
||
76 | * @return bool |
||
77 | */ |
||
78 | public function hasVehicleId(): bool |
||
82 | |||
83 | /** |
||
84 | * @return bool |
||
85 | */ |
||
86 | public function hasAfter(): bool |
||
90 | |||
91 | /** |
||
92 | * @return string |
||
93 | */ |
||
94 | public function getAfter(): string |
||
98 | |||
99 | /** |
||
100 | * @return bool |
||
101 | */ |
||
102 | public function hasOffset(): bool |
||
106 | |||
107 | /** |
||
108 | * @return int |
||
109 | */ |
||
110 | public function getOffset(): int |
||
114 | |||
115 | /** |
||
116 | * @param int $offset |
||
117 | * @return VehiclesQuery |
||
118 | */ |
||
119 | public function setOffset(int $offset): VehiclesQuery |
||
125 | |||
126 | /** |
||
127 | * @return bool |
||
128 | */ |
||
129 | public function hasLimit(): bool |
||
133 | |||
134 | /** |
||
135 | * @return int |
||
136 | */ |
||
137 | public function getLimit(): int |
||
141 | |||
142 | /** |
||
143 | * @param int $limit |
||
144 | * @return VehiclesQuery |
||
145 | */ |
||
146 | public function setLimit(int $limit): VehiclesQuery |
||
152 | |||
153 | /** |
||
154 | * @param Argument $argument |
||
155 | * @return VehiclesQuery |
||
156 | */ |
||
157 | public static function createFromArgument(Argument $argument): VehiclesQuery |
||
165 | } |
||
166 |