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

HasType   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setType() 0 5 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