1 | <?php |
||
24 | class Validator |
||
25 | { |
||
26 | /** |
||
27 | * Registers validation constraints for the xAPI models on a ValidatorBuilder. |
||
28 | * |
||
29 | * @param ValidatorBuilderInterface $builder The ValidatorBuilder |
||
30 | */ |
||
31 | public static function registerXApiConstraints(ValidatorBuilderInterface $builder) |
||
40 | |||
41 | /** |
||
42 | * Creates a ValidationBuilder with validation constraints registered for |
||
43 | * the xAPI models. |
||
44 | * |
||
45 | * @return ValidatorBuilderInterface The ValidatorBuilder |
||
46 | */ |
||
47 | public static function createValidatorBuilder() |
||
54 | |||
55 | /** |
||
56 | * Creates a new Validator. |
||
57 | * |
||
58 | * @return ValidatorInterface The Validator |
||
59 | */ |
||
60 | public static function createValidator() |
||
64 | } |
||
65 |