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