1 | <?php |
||
38 | class ClassUtils |
||
39 | { |
||
40 | /** |
||
41 | * @var ClassNameInflectorInterface|null |
||
42 | */ |
||
43 | private static $classNameInflector; |
||
44 | |||
45 | /** |
||
46 | * Gets the real class name of a class name that could be a proxy. |
||
47 | * |
||
48 | * @param string $class |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public static function getRealClass($class) |
||
66 | |||
67 | /** |
||
68 | * Gets the real class name of an object (even if its a proxy). |
||
69 | * |
||
70 | * @param object $object |
||
71 | * |
||
72 | * @return string |
||
73 | */ |
||
74 | public static function getClass($object) |
||
78 | |||
79 | /** |
||
80 | * Gets the real parent class name of a class or object. |
||
81 | * |
||
82 | * @param string $className |
||
83 | * |
||
84 | * @return string |
||
85 | */ |
||
86 | public static function getParentClass($className) |
||
90 | |||
91 | /** |
||
92 | * Creates a new reflection class. |
||
93 | * |
||
94 | * @param string $class |
||
95 | * |
||
96 | * @return \ReflectionClass |
||
97 | */ |
||
98 | public static function newReflectionClass($class) |
||
102 | |||
103 | /** |
||
104 | * Creates a new reflection object. |
||
105 | * |
||
106 | * @param object $object |
||
107 | * |
||
108 | * @return \ReflectionClass |
||
109 | */ |
||
110 | public static function newReflectionObject($object) |
||
114 | |||
115 | /** |
||
116 | * Given a class name and a proxy namespace returns the proxy name. |
||
117 | * |
||
118 | * @param string $className |
||
119 | * @param string $proxyNamespace |
||
120 | * |
||
121 | * @return string |
||
122 | */ |
||
123 | public static function generateProxyClassName($className, $proxyNamespace) |
||
131 | } |
||
132 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.