| Total Complexity | 2 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Validate |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @param bool $allowUnassigned |
||
| 25 | * |
||
| 26 | * @return ObjectValidator |
||
| 27 | */ |
||
| 28 | 2 | public static function object($allowUnassigned = true) |
|
| 29 | { |
||
| 30 | 2 | return new ObjectValidator($allowUnassigned); |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param bool $allowUnassigned |
||
| 35 | * |
||
| 36 | * @return ArrayValidator |
||
| 37 | */ |
||
| 38 | 2 | public static function arr($allowUnassigned = true) |
|
| 41 | } |
||
| 42 | } |
||
| 43 |