1 | <?php |
||
5 | class TypeUtils |
||
6 | { |
||
7 | /** |
||
8 | * Check if value is a valid cURL handle. |
||
9 | * @param mixed $value |
||
10 | * @return bool |
||
11 | */ |
||
12 | 33 | public static function isCurl($value) |
|
16 | |||
17 | /** |
||
18 | * Check if value is a valid Generator. |
||
19 | * @param mixed $value |
||
20 | * @return bool |
||
21 | */ |
||
22 | 30 | public static function isGeneratorContainer($value) |
|
26 | |||
27 | /** |
||
28 | * Check if value is a valid Generator closure. |
||
29 | * @param mixed $value |
||
30 | * @return bool |
||
31 | */ |
||
32 | 34 | public static function isGeneratorClosure($value) |
|
37 | |||
38 | /** |
||
39 | * Check if value is Throwable, excluding RuntimeException. |
||
40 | * @param mixed $value |
||
41 | * @return bool |
||
42 | */ |
||
43 | 9 | public static function isFatalThrowable($value) |
|
48 | } |
||
49 |