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