| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | abstract class AbstractFeatureItemFactory extends AbstractComponentFactory |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @param FeatureItemInterface $component |
||
| 13 | * @inheritdoc |
||
| 14 | */ |
||
| 15 | 4 | protected function init(AbstractComponent $component, ?array $ops = null): void |
|
| 16 | { |
||
| 17 | 4 | parent::init($component, $ops); |
|
| 18 | 4 | $component->setLabel($this->ops['label']); |
|
|
|
|||
| 19 | 4 | $component->setLink($this->ops['link']); |
|
| 20 | 4 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | 8 | public static function defaultOps(): array |
|
| 32 | ] |
||
| 33 | ); |
||
| 36 |