Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
14 | 1 | public function create(?array $ops = null): FeatureStackedItem |
|
15 | { |
||
16 | 1 | $component = new FeatureStackedItem(); |
|
17 | 1 | $this->init($component, $ops); |
|
18 | 1 | $component->setDescription($this->ops['description']); |
|
19 | 1 | $component->setButtonText($this->ops['buttonText']); |
|
20 | 1 | $component->setButtonClass($this->ops['buttonClass']); |
|
21 | 1 | $this->validate($component); |
|
22 | 1 | return $component; |
|
23 | } |
||
40 |