| Total Complexity | 5 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 3 | class plPhpVariable |
||
| 4 | { |
||
| 5 | /** @var string */ |
||
| 6 | public $name; |
||
| 7 | |||
| 8 | /** @var plPhpTypeDeclaration */ |
||
| 9 | public $type; |
||
| 10 | |||
| 11 | public function __construct(string $name, string $type = null) |
||
| 12 | { |
||
| 13 | $this->name = $name; |
||
| 14 | $this->type = new plPhpTypeDeclaration($type); |
||
| 15 | } |
||
| 16 | |||
| 17 | public function hasType(): bool |
||
| 20 | } |
||
| 21 | |||
| 22 | public function isBuiltIn(): bool |
||
| 25 | } |
||
| 26 | |||
| 27 | public function __toString() |
||
| 36 |