| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | trait HasType |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | protected $type; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | 235 | public function getType(): string |
|
| 16 | { |
||
| 17 | 235 | return $this->type; |
|
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param string $type |
||
| 22 | * |
||
| 23 | * @return $this |
||
| 24 | */ |
||
| 25 | 215 | public function setType(string $type) |
|
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return bool |
||
| 34 | */ |
||
| 35 | 40 | public function hasType(): bool |
|
| 40 |