Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
11 | final class CollectionFactory extends AbstractComponentFactory |
||
12 | { |
||
13 | /** |
||
14 | * @inheritdoc |
||
15 | */ |
||
16 | public function create(?array $ops = null): Collection |
||
17 | { |
||
18 | $component = new Collection(); |
||
19 | $this->init($component, $ops); |
||
20 | $this->validate($component); |
||
21 | return $component; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @inheritdoc |
||
26 | */ |
||
27 | public static function defaultOps(): array |
||
35 | ] |
||
36 | ); |
||
39 |