1 | <?php |
||
29 | class ReflectionCompositeFactory extends ReflectorFactory |
||
30 | { |
||
31 | const REFLECTION_OBJECT = ReflectionComposite::class; |
||
32 | |||
33 | /** |
||
34 | * @var PHPNativeReflector |
||
35 | */ |
||
36 | protected $reflector; |
||
37 | |||
38 | /** |
||
39 | * @var ReflectionComposite |
||
40 | */ |
||
41 | protected $object; |
||
42 | |||
43 | /** |
||
44 | * @var ReflectionCompositeProviderInterface |
||
45 | */ |
||
46 | protected $provider; |
||
47 | |||
48 | /** |
||
49 | * Creates a new ReflectionCompositeFactory from the given |
||
50 | * classname |
||
51 | * |
||
52 | * @param string $classname The class to build a reflect upon |
||
53 | * @return ReflectionCompositeFactory |
||
54 | */ |
||
55 | 19 | public static function fromClassName(string $classname) |
|
63 | |||
64 | 19 | public function __construct |
|
73 | |||
74 | /** |
||
75 | * Builds the ReflectionComposite from the provided parameters |
||
76 | * |
||
77 | * @return ReflectionComposite |
||
78 | */ |
||
79 | 19 | public function build() |
|
114 | |||
115 | /** |
||
116 | * Uses a ReflectionPropertyFactory to build a ReflectionProperty, |
||
117 | * and adds that to this ReflectionComposite |
||
118 | * |
||
119 | * @param PHPNativeReflectionProperty |
||
120 | */ |
||
121 | 19 | protected function buildProperty |
|
137 | |||
138 | /** |
||
139 | * Uses a ReflectionMethodFactory to build a ReflectionMethod, and |
||
140 | * adds that to this ReflectionComposite |
||
141 | * |
||
142 | * @param PHPNativeReflectionMethod |
||
143 | */ |
||
144 | 19 | protected function buildMethod(PHPNativeReflectionMethod $reflect) |
|
151 | |||
152 | /** |
||
153 | * Checks if a property is defined in the class |
||
154 | * |
||
155 | * @param Reflector $reflector |
||
156 | * @return boolean |
||
157 | */ |
||
158 | 19 | protected function checkIfLocal(Reflector $reflector) |
|
162 | } |
||
163 | |||
164 |