1 | <?php |
||
10 | class ClassLookup |
||
11 | { |
||
12 | /** |
||
13 | * Get full class name of object (ie. class name including full namespace) |
||
14 | * |
||
15 | * @param mixed $object |
||
16 | * |
||
17 | * @return string the name of the class and if the given $object isn't a vaid Object false will be returned |
||
18 | */ |
||
19 | 23 | public static function getClass($object) |
|
23 | |||
24 | /** |
||
25 | * Get class name of object (ie. class name without namespace) |
||
26 | * |
||
27 | * @param string|object $reference |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | 1 | public static function getClassName($reference) |
|
38 | } |
||
39 |