| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 2 | public function getAllClassNames(): array |
|
| 39 | { |
||
| 40 | 2 | if (!$this->locator instanceof AdvancedFileLocatorInterface) { |
|
| 41 | 1 | throw new \RuntimeException(sprintf('Locator "%s" must be an instance of "AdvancedFileLocatorInterface".', get_class($this->locator))); |
|
| 42 | } |
||
| 43 | |||
| 44 | 1 | return $this->locator->findAllClasses($this->getExtension()); |
|
| 45 | } |
||
| 57 |