1 | <?php |
||
20 | final class Extractor |
||
21 | { |
||
22 | /** @var Extractor\Methods */ |
||
23 | private $methods; |
||
24 | |||
25 | /** @var Extractor\Properties */ |
||
26 | private $properties; |
||
27 | |||
28 | /** @var Extractor\Constants */ |
||
29 | private $constants; |
||
30 | |||
31 | /** @var array */ |
||
32 | private $reflectionStructureCache = []; |
||
33 | |||
34 | /** |
||
35 | * @param Constants $constants |
||
36 | * @param Properties $properties |
||
37 | * @param Methods $methods |
||
38 | */ |
||
39 | public function __construct( |
||
48 | |||
49 | /** |
||
50 | * @param ReflectionClass $reflection |
||
51 | * @return Structure |
||
52 | * @throws ReflectionException |
||
53 | */ |
||
54 | public function extract(ReflectionClass $reflection): Structure |
||
67 | |||
68 | /** |
||
69 | * @param ReflectionClass $reflection |
||
70 | * @return bool |
||
71 | */ |
||
72 | private function hasCloneMethod(ReflectionClass $reflection): bool |
||
86 | } |
||
87 |