1 | <?php |
||
12 | final class Type { |
||
13 | /** |
||
14 | * Summarize the type of any variable. |
||
15 | * |
||
16 | * @param mixed $value |
||
17 | * |
||
18 | * @return string Result of `get_class` for objects or `gettype` for anything else. |
||
19 | * |
||
20 | * @see gettype |
||
21 | * @see get_class |
||
22 | */ |
||
23 | public static function summarize($value) { |
||
29 | |||
30 | /** |
||
31 | * getClassName returns the class name without namespaces. |
||
32 | * |
||
33 | * @param object|string $object Object instance of a fully qualified name. |
||
34 | * |
||
35 | * @return string |
||
36 | */ |
||
37 | public static function getClassName($object) { |
||
43 | } |
||
44 |