| 1 | <?php |
||
| 8 | class Boolean extends \PhpParser\Node\Scalar |
||
| 9 | { |
||
| 10 | /** @var boolean Number value */ |
||
| 11 | public $value; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * Constructs a boolean node. |
||
| 15 | * |
||
| 16 | * @param boolean $value Value of the number |
||
| 17 | * @param array $attributes Additional attributes |
||
| 18 | */ |
||
| 19 | public function __construct($value, array $attributes = array()) |
||
| 20 | { |
||
| 21 | parent::__construct($attributes); |
||
| 22 | $this->value = $value; |
||
| 23 | } |
||
| 24 | |||
| 25 | //@codeCoverageIgnoreStart |
||
| 26 | /** |
||
| 27 | * @return array |
||
| 28 | */ |
||
| 29 | public function getSubNodeNames(): array |
||
| 33 | //@codeCoverageIgnoreEnd |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Gets the type of the node. |
||
| 37 | * |
||
| 38 | * @return string Type of the node |
||
| 39 | */ |
||
| 40 | public function getType(): string |
||
| 44 | } |
||
| 45 |