Total Complexity | 2 |
Total Lines | 12 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
10 | trait WithVariable |
||
11 | { |
||
12 | private readonly Variable $variable; |
||
|
|||
13 | |||
14 | 8 | public function hasTypeDeclaration(): bool |
|
15 | { |
||
16 | 8 | return $this->variable->hasTypeDeclaration(); |
|
17 | } |
||
18 | |||
19 | 13 | public function type(): TypeDeclaration |
|
20 | { |
||
21 | 13 | return $this->variable->type(); |
|
22 | } |
||
24 |