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