| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | private function accessibleMethods(ReflectionClass $class) : array |
||
| 34 | { |
||
| 35 | $methods = array_filter($class->getMethods(), function (ReflectionMethod $method) : bool { |
||
| 36 | return $method->isPublic() || $method->isProtected(); |
||
| 37 | }); |
||
| 38 | |||
| 39 | return array_combine( |
||
| 40 | array_map(function (ReflectionMethod $method) : string { |
||
| 41 | return $method->getName(); |
||
| 42 | }, $methods), |
||
| 43 | $methods |
||
| 44 | ); |
||
| 46 | } |