Lines
100.00%
3 / 3
Methods
100.00%
3 / 3
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| getTemplateSet | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| getCustomCss | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 24 | readonly class LayoutSettings | |
| 25 | { | |
| 26 | public function __construct( | |
| 27 | private CoreConfiguration $coreConfiguration, | |
| 28 | ) { | |
| 29 | } | |
| 30 | ||
| 31 | public function getTemplateSet(): string | |
| 32 | { | |
| 33 | return (string) ($this->coreConfiguration->get(item: 'layout.templateSet') ?? 'default'); | |
| 34 | } | |
| 35 | ||
| 36 | public function getCustomCss(): string | |
| 37 | { | |
| 38 | return (string) $this->coreConfiguration->get(item: 'layout.customCss'); | |
| 39 | } | |
| 40 | } |