for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Vlaswinkel\Lua\AST;
/**
* Class NumberASTNode
*
* @author Koen Vlaswinkel <[email protected]>
* @package Vlaswinkel\Lua\AST
*/
class NumberASTNode extends LiteralASTNode {
const NAME = 'number';
* @var integer|float
private $value;
* NumberASTNode constructor.
* @param float|int $value
public function __construct($value) {
$this->value = $value;
}
* @return string
public function getName() {
return self::NAME;
* @return float|int
public function getValue() {
return $this->value;