| 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 | 16 | public function getClasses(): Classes |
|
| 33 | { |
||
| 34 | 16 | $classes = \array_filter( |
|
| 35 | 16 | $this->element->getClasses(), |
|
| 36 | 16 | static fn (ClassLike $element): bool => $element instanceof ClassType |
|
| 37 | 16 | ); |
|
| 38 | |||
| 39 | 16 | return new Classes(\array_map( |
|
| 40 | 16 | static fn (ClassType $class): ClassDeclaration => ClassDeclaration::fromElement($class), |
|
| 41 | 16 | $classes |
|
| 42 | 16 | )); |
|
| 45 |