Passed
Push — master ( 4c5faf...429320 )
by Chris
04:23
created

Input   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 14
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A setType() 0 5 1
1
<?php
2
3
namespace WebTheory\Saveyour\Fields;
4
5
use WebTheory\Saveyour\Contracts\FormFieldInterface;
6
7
class Input extends AbstractInput implements FormFieldInterface
8
{
9
    /**
10
     * Set the value of type
11
     *
12
     * @param string  $type
13
     *
14
     * @return self
15
     */
16
    public function setType(string $type)
17
    {
18
        $this->type = $type;
19
20
        return $this;
21
    }
22
}
23