Completed
Push — development ( 616ff4...ce498d )
by
unknown
15s queued 10s
created

HasType::setType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace WeDevBr\Mati\Inputs;
4
5
/**
6
 * Trait for inputs that have a type
7
 *
8
 * @author Gabriel Mineiro <[email protected]>
9
 */
10
trait HasType
11
{
12
    protected $type;
13
14
    /**
15
     * @param string $type
16
     * @return static
17
     */
18
    public function setType(string $type)
19
    {
20
        $this->type = $type;
21
        return $this;
22
    }
23
}
24