Input::setType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace WebTheory\Saveyour\Field\Type;
4
5
use WebTheory\Saveyour\Contracts\Field\FormFieldInterface;
6
use WebTheory\Saveyour\Field\Type\Abstracts\AbstractInput;
7
8
class Input extends AbstractInput implements FormFieldInterface
9
{
10
    /**
11
     * Set the value of type
12
     *
13
     * @param string  $type
14
     *
15
     * @return $this
16
     */
17
    public function setType(string $type): Input
18
    {
19
        $this->type = $type;
20
21
        return $this;
22
    }
23
}
24