1 | <?php |
||
7 | class Validator |
||
8 | { |
||
9 | /** |
||
10 | * @param mixed $subject |
||
11 | * |
||
12 | * @throws \TestMonitor\DoneDone\Exceptions\InvalidDataException |
||
13 | * @return bool |
||
14 | */ |
||
15 | public static function isInteger($subject) |
||
23 | |||
24 | /** |
||
25 | * @param mixed $subject |
||
26 | * |
||
27 | * @throws \TestMonitor\DoneDone\Exceptions\InvalidDataException |
||
28 | * @return bool |
||
29 | */ |
||
30 | public static function isString($subject) |
||
38 | |||
39 | /** |
||
40 | * @param mixed $subject |
||
41 | * |
||
42 | * @throws \TestMonitor\DoneDone\Exceptions\InvalidDataException |
||
43 | * @return bool |
||
44 | */ |
||
45 | public static function isArray($subject) |
||
53 | |||
54 | /** |
||
55 | * @param mixed $haystack |
||
56 | * @param mixed $needle |
||
57 | * |
||
58 | * @throws \TestMonitor\DoneDone\Exceptions\InvalidDataException |
||
59 | * @return bool |
||
60 | */ |
||
61 | public static function keyExists($haystack, $needle) |
||
69 | |||
70 | /** |
||
71 | * @param mixed $haystack |
||
72 | * @param array $needles |
||
73 | * |
||
74 | * @throws \TestMonitor\DoneDone\Exceptions\InvalidDataException |
||
75 | * @return bool |
||
76 | */ |
||
77 | public static function keysExists($haystack, array $needles) |
||
85 | } |
||
86 |