| 1 | <?php |
||
| 8 | class PersistedWaypointValidator extends WaypointValidator |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var GeoCacheService |
||
|
|
|||
| 12 | */ |
||
| 13 | private $geoCacheService; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * PersistedWaypointValidator constructor. |
||
| 17 | * |
||
| 18 | * @param GeoCacheService $geoCacheService |
||
| 19 | */ |
||
| 20 | public function __construct(GeoCacheService $geoCacheService) |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Checks if the passed value is valid. |
||
| 27 | * |
||
| 28 | * @param mixed $waypoint The value that should be validated |
||
| 29 | * @param Constraint $constraint The constraint for the validation |
||
| 30 | * |
||
| 31 | * @return bool |
||
| 32 | */ |
||
| 33 | public function validate($waypoint, Constraint $constraint) |
||
| 51 | } |
||
| 52 |