| 1 | <?php |
||
| 13 | class PersistedWaypointValidator extends WaypointValidator |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var GeoCacheService |
||
| 17 | */ |
||
| 18 | private $geoCacheService; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * PersistedWaypointValidator constructor. |
||
| 22 | * |
||
| 23 | * @param GeoCacheService $geoCacheService |
||
| 24 | */ |
||
| 25 | public function __construct(GeoCacheService $geoCacheService) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Checks if the passed value is valid. |
||
| 32 | * |
||
| 33 | * @param mixed $waypoint The value that should be validated |
||
| 34 | * @param Constraint $constraint The constraint for the validation |
||
| 35 | * |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function validate($waypoint, Constraint $constraint) |
||
| 56 | } |
||
| 57 |