1 | <?php |
||
9 | class Last { |
||
10 | private $autoLookup; |
||
11 | /* |
||
12 | Stores the last value e.g. |
||
13 | "a" + "b" |
||
14 | Will store "a" before reading the token for the + and perfoming the concatenate operation |
||
15 | */ |
||
16 | private $last; |
||
17 | private $data; |
||
18 | private $result; |
||
19 | private $traversing = false; |
||
20 | |||
21 | |||
22 | public function __construct($data, $result, $autoLookup) { |
||
27 | |||
28 | |||
29 | public function traverse() { |
||
32 | |||
33 | public function clear() { |
||
36 | |||
37 | public function isEmpty() { |
||
40 | |||
41 | public function processNested($parser, $token) { |
||
46 | |||
47 | public function read() { |
||
50 | |||
51 | public function set($value) { |
||
54 | |||
55 | public function makeTraversing() { |
||
58 | |||
59 | //Applies the current operation to whatever is in $last based on $mode |
||
60 | public function process() { |
||
71 | |||
72 | private function processLastUnexpected() { |
||
81 | } |
||
82 |