| 1 | <?php |
||
| 11 | class NumberASTNode extends LiteralASTNode { |
||
| 12 | const NAME = 'number'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @var integer|float |
||
| 16 | */ |
||
| 17 | private $value; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * NumberASTNode constructor. |
||
| 21 | * |
||
| 22 | * @param float|int $value |
||
| 23 | */ |
||
| 24 | 8 | public function __construct($value) { |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | 2 | public function getName() { |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return float|int |
||
| 37 | */ |
||
| 38 | 5 | public function getValue() { |
|
| 41 | } |