| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class PresetLoader |
||
| 8 | { |
||
| 9 | /** @var PresetLocator */ |
||
| 10 | private $locator; |
||
| 11 | |||
| 12 | 3 | public function __construct(PresetLocator $locator) |
|
| 15 | 3 | } |
|
| 16 | |||
| 17 | 1 | public function getPreset(string $presetName): PresetInterface |
|
| 18 | { |
||
| 19 | 1 | return $this->locator->getPreset($presetName); |
|
| 20 | } |
||
| 21 | |||
| 22 | 3 | public function getLocator(): PresetLocator |
|
| 25 | } |
||
| 26 | } |
||
| 27 |