| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 14 | public function getInterfaces(): Interfaces |
|
| 33 | { |
||
| 34 | 14 | $interfaces = \array_filter( |
|
| 35 | 14 | $this->element->getClasses(), |
|
| 36 | 14 | static fn (ClassLike $element): bool => $element instanceof InterfaceType |
|
| 37 | 14 | ); |
|
| 38 | |||
| 39 | 14 | return new Interfaces(\array_map( |
|
| 40 | 14 | static fn (InterfaceType $interface): InterfaceDeclaration => InterfaceDeclaration::fromElement($interface), |
|
| 41 | 14 | $interfaces |
|
| 42 | 14 | )); |
|
| 45 |