Passed
Push — master ( 5cf75b...52ecf5 )
by Nikolaos
04:27 queued 01:52
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
wmc 1
eloc 3
dl 0
loc 14
ccs 0
cts 4
cp 0
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setType() 0 5 1
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
    public function setType(string $type): AbstractInput
27
    {
28
        $this->type = $type;
29
30
        return $this;
31
    }
32
}
33