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