1 | <?php |
||
9 | class CoordinatesCriteria implements CriteriaInterface |
||
10 | { |
||
11 | /** |
||
12 | * @var float |
||
13 | */ |
||
14 | private $latitude; |
||
15 | |||
16 | /** |
||
17 | * @var float |
||
18 | */ |
||
19 | private $longitude; |
||
20 | |||
21 | /** |
||
22 | * @param float $latitude |
||
23 | * @param float $longitude |
||
24 | */ |
||
25 | 8 | public function __construct(float $latitude = null, float $longitude = null) |
|
30 | |||
31 | /** |
||
32 | * @return float|null |
||
33 | */ |
||
34 | 2 | public function getLatitude() |
|
38 | |||
39 | /** |
||
40 | * @param float $latitude |
||
41 | */ |
||
42 | 2 | public function setLatitude(float $latitude = null) |
|
46 | |||
47 | /** |
||
48 | * @return float|null |
||
49 | */ |
||
50 | 2 | public function getLongitude() |
|
54 | |||
55 | /** |
||
56 | * @param float $longitude |
||
57 | */ |
||
58 | 2 | public function setLongitude(float $longitude = null) |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | 5 | public function shouldBeApplied(): bool |
|
71 | } |
||
72 |