| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 86.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class FeatureTextListFactory extends AbstractComponentFactory |
||
| 11 | { |
||
| 12 | /** @var FeatureTextListItemFactory */ |
||
| 13 | private $itemFactory; |
||
| 14 | |||
| 15 | 3 | public function __construct(ObjectManager $manager, ValidatorInterface $validator, FeatureTextListItemFactory $itemFactory) |
|
| 19 | 3 | } |
|
| 20 | |||
| 21 | public function getItemFactory() |
||
| 22 | { |
||
| 23 | return $this->itemFactory; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritdoc |
||
| 28 | */ |
||
| 29 | 2 | public function create(?array $ops = null): FeatureTextList |
|
| 30 | { |
||
| 31 | 2 | $component = new FeatureTextList(); |
|
| 32 | 2 | $this->init($component, $ops); |
|
| 33 | 2 | $this->validate($component); |
|
| 34 | 2 | return $component; |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritdoc |
||
| 39 | */ |
||
| 40 | 3 | public static function defaultOps(): array |
|
| 47 | ] |
||
| 48 | ); |
||
| 49 | } |
||
| 51 |