| Total Complexity | 8 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class MethodsBuilder |
||
| 13 | { |
||
| 14 | /** @param \PhpParser\Node\Stmt\Class_|\PhpParser\Node\Stmt\Interface_ $definition */ |
||
| 15 | public function build($definition): array |
||
| 16 | { |
||
| 17 | $methods = []; |
||
| 18 | foreach ($definition->getMethods() as $method) { |
||
| 19 | $methods[] = $this->buildMethod($method); |
||
| 20 | } |
||
| 21 | return $methods; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function buildMethod(ClassMethod $method): array |
||
| 31 | ]; |
||
| 32 | } |
||
| 33 | |||
| 34 | private function resolveVisibility(ClassMethod $statement): string |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | private function buildParameters(array $parameters): array |
||
| 59 |