Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | trait TypeTrait |
||
12 | { |
||
13 | /** |
||
14 | * @var TypeInterface|null |
||
15 | */ |
||
16 | protected $type; |
||
17 | |||
18 | /** |
||
19 | * @return TypeInterface |
||
20 | */ |
||
21 | public function getType(): TypeInterface |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @internal This is a method for obtaining a type that implements compatibility with an current implementation |
||
28 | * @return TypeInterface|null |
||
29 | */ |
||
30 | public function getNullableType(): ?TypeInterface |
||
35 |