| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | protected function getSignaturesFromType(): array |
||
| 25 | { |
||
| 26 | $reflection = new ReflectionClass($this->type); |
||
| 27 | $methods = $reflection->getMethods(); |
||
| 28 | $templates = $this->getDefaultSignatures(); |
||
| 29 | |||
| 30 | $signatures = []; |
||
| 31 | |||
| 32 | foreach ($methods as $method) { |
||
| 33 | if ($templates[$method = $method->getName()] ?? false) { |
||
| 34 | $signatures[$method] = $templates[$method]; |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | return $signatures; |
||
| 39 | } |
||
| 60 |