Conditions | 5 |
Paths | 5 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | protected function setups() : array |
||
21 | { |
||
22 | $methods = []; |
||
23 | |||
24 | foreach ((new ReflectionClass($this))->getMethods(ReflectionMethod::IS_PROTECTED) as $method) { |
||
25 | foreach ($method->getParameters() as $parameter) { |
||
26 | if ($required = $parameter->getClass()) { |
||
27 | if ($required->getName() === Setup::class) { |
||
28 | $methods[] = $method->getName(); |
||
29 | } |
||
30 | } |
||
31 | } |
||
32 | } |
||
33 | |||
34 | return $methods; |
||
35 | } |
||
37 |