1 | <?php |
||
8 | final class ClassToString |
||
9 | { |
||
10 | /** |
||
11 | * Fully qualified class name of an object, without a leading backslash |
||
12 | * @param $object |
||
13 | * @return string |
||
14 | * @throws \InvalidArgumentException |
||
15 | */ |
||
16 | public static function fqcn($object) |
||
23 | |||
24 | /** |
||
25 | * Canonical class name of an object, of the form "My.Namespace.MyClass" |
||
26 | * @param $object |
||
27 | * @return string |
||
28 | */ |
||
29 | public static function canonical($object) |
||
33 | |||
34 | /** |
||
35 | * Underscored and lowercased class name of an object, of the form "my.mamespace.my_class" |
||
36 | * @param $object |
||
37 | * @return string |
||
38 | */ |
||
39 | public static function underscore($object) |
||
43 | |||
44 | /** |
||
45 | * The class name of an object, without the namespace |
||
46 | * @param $object |
||
47 | * @return string |
||
48 | */ |
||
49 | public static function short($object) |
||
54 | } |
||
55 |