| Conditions | 3 |
| Paths | 4 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function __construct($name, $attributes = []) |
||
| 18 | { |
||
| 19 | parent::__construct($name, $attributes); |
||
| 20 | |||
| 21 | $this['type'] = 'checkbox'; |
||
| 22 | |||
| 23 | $this['checked'] = isset($attributes['checked']) |
||
| 24 | ? $attributes['checked'] |
||
| 25 | : false; |
||
| 26 | |||
| 27 | $this['value'] = isset($attributes['value']) |
||
| 28 | ? $attributes['value'] |
||
| 29 | : $name; |
||
| 30 | |||
| 31 | $this->UseNameAsDefaultLabel(null); |
||
| 32 | } |
||
| 70 |