Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | 38 | public function __construct(string $name, ?string $title = null) |
|
20 | { |
||
21 | 38 | parent::__construct($name, $title); |
|
22 | 38 | $this->setAttributes( |
|
23 | 38 | AttributeFactory::createFromArray([ |
|
24 | 38 | 'value' => $name, |
|
25 | 38 | ]) |
|
26 | 38 | ); |
|
27 | 38 | $this->removeAttribute('name'); |
|
28 | 38 | $this->removeAttribute('id'); |
|
29 | } |
||
63 |