| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class SubThemeFactory implements ThemeFactoryInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var ThemeFactoryInterface |
||
| 11 | */ |
||
| 12 | private $themeFactory; |
||
| 13 | |||
| 14 | public function __construct(ThemeFactoryInterface $themeFactory) |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Creates a theme object based on the descriptor object passed in parameter. |
||
| 21 | * |
||
| 22 | * @throws \TheCodingMachine\CMS\Theme\CannotHandleThemeDescriptorExceptionInterface Throws an exception if the factory cannot handle this descriptor. |
||
| 23 | */ |
||
| 24 | public function createTheme(ThemeDescriptorInterface $descriptor): RenderableInterface |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Returns true if this factory can handle the descriptor passed in parameter. False otherwise. |
||
| 34 | */ |
||
| 35 | public function canCreateTheme(ThemeDescriptorInterface $descriptor): bool |
||
| 40 |