Passed
Push — master ( 52ecf5...abf332 )
by Nikolaos
02:34
created

Input::setType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1.0156

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 5
ccs 3
cts 4
cp 0.75
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
crap 1.0156
1
<?php
2
3
/**
4
 * This file is part of the Phalcon Framework.
5
 *
6
 * For the full copyright and license information, please view the LICENSE.md
7
 * file that was distributed with this source code.
8
 */
9
10
declare(strict_types=1);
11
12
namespace Phalcon\Html\Helper\Input;
13
14
/**
15
 * Class Input
16
 */
17
class Input extends AbstractInput
18
{
19
    /**
20
     * Sets the type of the input
21
     *
22
     * @param string $type
23
     *
24
     * @return AbstractInput
25
     */
26 1
    public function setType(string $type): AbstractInput
27
    {
28 1
        $this->type = $type;
29
30 1
        return $this;
31
    }
32
}
33