| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class FeatureTextListFactory extends AbstractComponentFactory |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @inheritdoc |
||
| 13 | */ |
||
| 14 | 1 | public function create(?array $ops = null): FeatureTextList |
|
| 15 | { |
||
| 16 | 1 | $component = new FeatureTextList(); |
|
| 17 | 1 | $this->init($component, $ops); |
|
| 18 | 1 | $component->setTitle($this->ops['title']); |
|
| 19 | 1 | $this->validate($component); |
|
| 20 | 1 | return $component; |
|
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @inheritdoc |
||
| 25 | */ |
||
| 26 | 2 | public static function defaultOps(): array |
|
| 32 | ] |
||
| 33 | ); |
||
| 36 |