| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 1 | public function create(?array $ops = null): FeatureColumns |
|
| 15 | { |
||
| 16 | 1 | $component = new FeatureColumns(); |
|
| 17 | 1 | $this->init($component, $ops); |
|
| 18 | 1 | $component->setTitle($this->ops['title']); |
|
| 19 | 1 | if ($this->ops['columns']) { |
|
| 20 | 1 | $component->setColumns($this->ops['columns']); |
|
| 21 | } |
||
| 22 | 1 | $this->validate($component); |
|
| 23 | 1 | return $component; |
|
| 24 | } |
||
| 40 |