1 | <?php |
||
18 | class MethodConditionWithInheritDocFetcher extends AbstractFetcher |
||
19 | { |
||
20 | /** |
||
21 | * Fetches conditions from all parent method prototypes recursively |
||
22 | * |
||
23 | * @param ReflectionClass $class |
||
24 | * @param string $methodName |
||
25 | * |
||
26 | * @return array |
||
27 | * @throws ReflectionException |
||
28 | */ |
||
29 | 11 | public function getConditions(ReflectionClass $class, string $methodName): array |
|
54 | |||
55 | /** |
||
56 | * @param ReflectionClass $class |
||
57 | * @param string $methodName |
||
58 | * @param array $parentMethods |
||
59 | * @throws ReflectionException |
||
60 | */ |
||
61 | 6 | private function getParentClassesMethods(ReflectionClass $class, string $methodName, array &$parentMethods): void |
|
75 | |||
76 | /** |
||
77 | * @param ReflectionClass $class |
||
78 | * @param string $methodName |
||
79 | * @param array $parentMethods |
||
80 | * @throws ReflectionException |
||
81 | */ |
||
82 | 6 | private function getInterfacesMethods(ReflectionClass $class, $methodName, &$parentMethods): void |
|
90 | } |
||
91 |