1 | <?php |
||
11 | class Types |
||
12 | { |
||
13 | /** |
||
14 | * @return \Closure |
||
15 | */ |
||
16 | public static function string(): \Closure |
||
20 | |||
21 | /** |
||
22 | * @return \Closure |
||
23 | */ |
||
24 | public static function int(): \Closure |
||
28 | |||
29 | /** |
||
30 | * @return \Closure |
||
31 | */ |
||
32 | public static function float(): \Closure |
||
36 | |||
37 | /** |
||
38 | * @return \Closure |
||
39 | */ |
||
40 | public static function boolean(): \Closure |
||
44 | |||
45 | /** |
||
46 | * @return \Closure |
||
47 | */ |
||
48 | public static function array(): \Closure |
||
52 | |||
53 | /** |
||
54 | * @return \Closure |
||
55 | */ |
||
56 | public static function callable(): \Closure |
||
60 | |||
61 | /** |
||
62 | * @return \Closure |
||
63 | */ |
||
64 | public static function object(): \Closure |
||
68 | |||
69 | /** |
||
70 | * @param $class |
||
71 | * |
||
72 | * @return \Closure |
||
73 | */ |
||
74 | public static function instanceof($class): \Closure |
||
81 | } |