1 | <?php |
||
26 | class ReflectionService implements SingletonInterface |
||
27 | { |
||
28 | /** |
||
29 | * @var ReflectionService |
||
30 | */ |
||
31 | private static $instance; |
||
32 | |||
33 | /** |
||
34 | * @var ClassReflection[] |
||
35 | */ |
||
36 | protected $classReflection = []; |
||
37 | |||
38 | /** |
||
39 | * @var PropertyReflection[] |
||
40 | */ |
||
41 | protected $classAccessibleProperties = []; |
||
42 | |||
43 | /** |
||
44 | * @return ReflectionService |
||
45 | */ |
||
46 | public static function get() |
||
54 | |||
55 | /** |
||
56 | * @param string $className |
||
57 | * @return ClassReflection |
||
58 | */ |
||
59 | public function getClassReflection($className) |
||
67 | |||
68 | /** |
||
69 | * @param string $className |
||
70 | * @return PropertyReflection |
||
71 | */ |
||
72 | public function getAccessibleProperties($className) |
||
87 | |||
88 | /** |
||
89 | * @param string $className |
||
90 | * @param string $propertyName |
||
91 | * @return bool |
||
92 | */ |
||
93 | public function isClassPropertyAccessible($className, $propertyName) |
||
99 | |||
100 | /** |
||
101 | * @param string $className |
||
102 | * @param string $propertyName |
||
103 | * @return PropertyReflection |
||
104 | * @throws PropertyNotAccessibleException |
||
105 | */ |
||
106 | public function getClassAccessibleProperty($className, $propertyName) |
||
119 | } |
||
120 |