| Total Complexity | 7 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class GeoJsonRule implements Rule |
||
| 16 | { |
||
| 17 | /** @var string */ |
||
| 18 | private $geometryClass; |
||
| 19 | /** @var Throwable */ |
||
| 20 | private $exception; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Constructor. |
||
| 24 | * @param string|null $geometryClass Expected geometry. |
||
| 25 | */ |
||
| 26 | public function __construct(?string $geometryClass = null) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Determine if the validation rule passes. |
||
| 33 | * |
||
| 34 | * @param string $attribute |
||
| 35 | * @param mixed $value |
||
| 36 | * @return bool |
||
| 37 | */ |
||
| 38 | public function passes($attribute, $value) |
||
| 53 | } |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Get the validation error message. |
||
| 57 | * |
||
| 58 | * @return string|array |
||
| 59 | */ |
||
| 60 | public function message() |
||
| 71 |