Completed
Push — feature/pilot_information ( 13ff1e...cc067b )
by Laurent
01:46
created

InputCheckBox::checkedValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
4
namespace flightlog\form;
5
6
7
8
final class InputCheckBox extends BaseInput
9
{
10
    /**
11
     * @param string $name
12
     * @param array  $options
13
     */
14
    public function __construct($name, array $options = [])
15
    {
16
        parent::__construct($name, FormElementInterface::TYPE_CHECKBOX, $options);
17
    }
18
19
    public function checkedValue(){
20
        return 1;
21
    }
22
}