blob: 49bf741d3b4e4673036b56ece998f8ac8605b3bb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
namespace NXP\Classes;
class Token
{
const Literal = "literal";
const Variable = "variable";
const Operator = "operator";
const LeftParenthesis = "LP";
const RightParenthesis = "RP";
const Function = "function";
const ParamSeparator = "separator";
const String = "string";
const Space = "space";
public $type = self::Literal;
/**
* @var float|string
*/
public $value;
/**
* Token constructor.
* @param string $type
* @param float|string $value
*/
public function __construct(string $type, $value)
{
$this->type = $type;
$this->value = $value;
}
}
|