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

Number   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 22
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setStep() 0 4 1
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
}