| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Checkbox extends Base |
||
| 6 | { |
||
| 7 | protected $element = 'input'; |
||
| 8 | |||
| 9 | public function __construct(array $args = []) |
||
| 10 | { |
||
| 11 | parent::__construct($args); |
||
| 12 | |||
| 13 | if (count($args['options']) > 1) { |
||
| 14 | $this->multi = true; |
||
| 15 | } |
||
| 16 | } |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | public function render() |
||
| 36 | ); |
||
| 37 | } |
||
| 39 |