Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | trait OfTypeTrait |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * @var TypeInterface |
||
10 | */ |
||
11 | private $ofType; |
||
12 | |||
13 | /** |
||
14 | * @return mixed |
||
15 | */ |
||
16 | public function getOfType(): TypeInterface |
||
17 | { |
||
18 | return $this->ofType; |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * @param TypeInterface $ofType |
||
23 | * @return $this |
||
24 | * @throws \TypeError |
||
25 | */ |
||
26 | protected function setOfType(TypeInterface $ofType) |
||
31 | } |
||
32 | } |
||
33 |