1 | <?php |
||
12 | trait LogicalAssertion |
||
13 | { |
||
14 | /** |
||
15 | * @param mixed $value |
||
16 | * Value to check. |
||
17 | * @param bool $negate |
||
18 | * Negate the condition. |
||
19 | * |
||
20 | * @return int |
||
21 | * - 0: Everything is fine. |
||
22 | * - 1: Value is found, but should not be. |
||
23 | * - 2: Value is not found, but should be. |
||
24 | */ |
||
25 | 16 | public static function assertion($value, $negate) |
|
41 | } |
||
42 |