| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class ThemesProvider implements ThemesProviderInterface |
||
| 11 | { |
||
| 12 | private DefaultTranslationDirectoryProviderInterface $defaultTranslationDirectoryProvider; |
||
| 13 | |||
| 14 | private ThemeFactoryInterface $themeFactory; |
||
| 15 | |||
| 16 | public function __construct( |
||
| 22 | } |
||
| 23 | |||
| 24 | public function getAll(): array |
||
| 25 | { |
||
| 26 | return [self::NAME_DEFAULT => $this->getDefaultTheme()]; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function findOneByName(string $name): ?ThemeInterface |
||
| 32 | } |
||
| 33 | |||
| 34 | public function getDefaultTheme(): ThemeInterface |
||
| 39 |