1 | <?php |
||
13 | class Assertion extends BaseAssertion |
||
14 | { |
||
15 | const INVALID_NON_EMPTY_STRING = 501; |
||
16 | const INVALID_REGULAR_EXPRESSION = 502; |
||
17 | |||
18 | protected static $exceptionClass = 'OpenConext\Value\Exception\InvalidArgumentException'; |
||
19 | |||
20 | /** |
||
21 | * @param string $value |
||
22 | * @param string $propertyPath |
||
23 | * @return void |
||
24 | */ |
||
25 | public static function nonEmptyString($value, $propertyPath) |
||
38 | |||
39 | /** |
||
40 | * @param $regularExpression |
||
41 | * @param $propertyPath |
||
42 | * @return void |
||
43 | */ |
||
44 | public static function validRegularExpression($regularExpression, $propertyPath) |
||
66 | |||
67 | /** |
||
68 | * @param array $requiredKeys |
||
69 | * @param array $value |
||
70 | * @param null|string $message |
||
71 | * @param null|string $propertyPath |
||
72 | * @return void |
||
73 | */ |
||
74 | public static function keysExist(array $value, array $requiredKeys, $message = null, $propertyPath = null) |
||
80 | } |
||
81 |