Completed
Push — feature/api ( 725c17...de88d6 )
by Laurent
01:40
created

Number::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 *
4
 */
5
6
namespace flightlog\form;
7
8
/**
9
 * @author Laurent De Coninck <[email protected]>
10
 */
11
class Number extends BaseInput
12
{
13
14
    /**
15
     * @param string $name
16
     * @param array  $options
17
     */
18
    public function __construct($name, array $options = [])
19
    {
20
        parent::__construct($name, FormElementInterface::TYPE_NUMBER, $options);
21
    }
22
23
    /**
24
     * @param string $step
25
     *
26
     * @return $this
27
     */
28
    public function setStep($step)
29
    {
30
        return $this->setAttribute('step', $step);
31
    }
32
}