1 | <?php |
||
5 | class ReflectionClass extends ReflectionClassLike |
||
6 | { |
||
7 | use Parts\AbstractTrait; |
||
8 | use Parts\FinalTrait; |
||
9 | use Parts\InterfaceTrait; |
||
10 | use Parts\ConstantTrait; |
||
11 | use Parts\PropertyTrait; |
||
12 | use Parts\TraitUseTrait; |
||
13 | |||
14 | protected $parent; |
||
15 | |||
16 | 648 | public function getParent() |
|
20 | |||
21 | 630 | public function getParentClass() |
|
37 | |||
38 | 312 | public function setParent($parent) |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function isSubclassOf($className) |
||
70 | |||
71 | /** |
||
72 | * Returns if the class is cloneable. |
||
73 | * |
||
74 | * @return bool |
||
75 | */ |
||
76 | 15 | public function isCloneable() |
|
84 | |||
85 | /** |
||
86 | * Checks if the class is instantiable. |
||
87 | * |
||
88 | * @return bool |
||
89 | */ |
||
90 | 15 | public function isInstantiable() |
|
98 | |||
99 | /** |
||
100 | * Checks if an object is an instance of the class. |
||
101 | * |
||
102 | * @param object $object |
||
103 | * |
||
104 | * @return bool |
||
105 | */ |
||
106 | 3 | public function isInstance($object) |
|
110 | |||
111 | /** |
||
112 | * Checks if the class is iterateable. |
||
113 | * |
||
114 | * @return bool |
||
115 | */ |
||
116 | 15 | public function isIterateable() |
|
126 | |||
127 | /** |
||
128 | * Creates a new class instance from given arguments. |
||
129 | * |
||
130 | * @throws \ReflectionException Always... Can't be implemented. |
||
131 | * |
||
132 | * @return object |
||
133 | */ |
||
134 | 15 | public function newInstance() |
|
138 | |||
139 | /** |
||
140 | * Creates a new instance of the class, the given arguments are passed to the class constructor. |
||
141 | * |
||
142 | * |
||
143 | * @param array $args The parameters to be passed to the class constructor as an array. |
||
144 | * |
||
145 | * @throws \ReflectionException Always... Can't be implemented. |
||
146 | * |
||
147 | * @return object |
||
148 | */ |
||
149 | 15 | public function newInstanceArgs(array $args) |
|
153 | |||
154 | /** |
||
155 | * Creates a new class instance without invoking the constructor. |
||
156 | * |
||
157 | * @throws \ReflectionException Always... Can't be implemented. |
||
158 | * |
||
159 | * @return object |
||
160 | */ |
||
161 | 15 | public function newInstanceWithoutConstructor() |
|
165 | } |
||
166 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.