Radio::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
nc 1
nop 3
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: sjhc1170
5
 * Date: 17/05/2018
6
 * Time: 16:17
7
 */
8
9
namespace Iriven\Plugins\Form\Elements;
10
11
12
class Radio extends Checkbox
13
{
14
    /**
15
     * Radio constructor.
16
     * @param $label
17
     * @param array $options
18
     * @param array $attributes
19
     */
20
    public function __construct($label, array $options, array $attributes=[])
21
    {
22
        parent::__construct($label, $options, $attributes);
23
        $this->Attributes()->set('type','radio');
24
    }
25
26
}