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