| Total Complexity | 5 | 
| Total Lines | 30 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 10 | class Variable | ||
| 11 | { | ||
| 12 | /** @var string */ | ||
| 13 | public $name; | ||
| 14 | |||
| 15 | /** @var TypeDeclaration */ | ||
| 16 | public $type; | ||
| 17 | |||
| 18 | public function __construct(string $name, string $type = null) | ||
| 19 |     { | ||
| 20 | $this->name = $name; | ||
| 21 | $this->type = new TypeDeclaration($type); | ||
| 22 | } | ||
| 23 | |||
| 24 | public function hasType(): bool | ||
| 25 |     { | ||
| 26 | return $this->type->isPresent(); | ||
| 27 | } | ||
| 28 | |||
| 29 | public function isBuiltIn(): bool | ||
| 32 | } | ||
| 33 | |||
| 34 | public function __toString() | ||
| 43 |