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