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