1 | <?php |
||
18 | class MethodConditionFetcher 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 | 10 | public function getConditions(ReflectionClass $class, string $methodName): array |
|
47 | |||
48 | /** |
||
49 | * @param ReflectionClass $class |
||
50 | * @param string $methodName |
||
51 | * @param array $parentMethods |
||
52 | * @throws \ReflectionException |
||
53 | */ |
||
54 | 10 | private function getParentClassesMethods(ReflectionClass $class, string $methodName, array &$parentMethods): void |
|
68 | |||
69 | /** |
||
70 | * @param ReflectionClass $class |
||
71 | * @param string $methodName |
||
72 | * @param array $parentMethods |
||
73 | * @throws \ReflectionException |
||
74 | */ |
||
75 | 10 | private function getInterfacesMethods(ReflectionClass $class, $methodName, &$parentMethods): void |
|
83 | } |
||
84 |