| 1 | <?php |
||
| 9 | class FormatConstraint extends FormatConstraintBase |
||
| 10 | { |
||
| 11 | /** @var FormatValidatorInterface[] */ |
||
| 12 | private $formatMap = []; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * {@inheritdoc} |
||
| 16 | */ |
||
| 17 | 4 | public function check($element, $schema = null, $path = null, $i = null) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Add a format validator. |
||
| 40 | * |
||
| 41 | * @param string $format |
||
| 42 | * @param FormatValidatorInterface $formatValidator |
||
| 43 | */ |
||
| 44 | 1 | public function addFormatValidator($format, FormatValidatorInterface $formatValidator) |
|
| 48 | } |
||
| 49 |