| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 12 | trait WithVariable |
||
| 13 | { |
||
| 14 | /** @var Variable */ |
||
| 15 | private $variable; |
||
| 16 | |||
| 17 | public function isAReference(): bool |
||
| 20 | } |
||
| 21 | |||
| 22 | public function referenceName(): Name |
||
| 23 | { |
||
| 24 | return $this->variable->referenceName(); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function hasTypeDeclaration(): bool |
||
| 28 | { |
||
| 29 | return $this->variable->hasTypeDeclaration(); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function type(): TypeDeclaration |
||
| 35 | } |
||
| 36 | } |
||
| 37 |