Hoa central
Invocation.php
Go to the documentation of this file.
1 <?php
2 
37 namespace Hoa\Compiler\Llk\Rule;
38 
47 abstract class Invocation
48 {
54  protected $_rule = null;
55 
61  protected $_data = null;
62 
68  protected $_todo = null;
69 
75  protected $_depth = -1;
76 
83  protected $_transitional = false;
84 
85 
86 
96  public function __construct(
97  $rule,
98  $data,
99  Array $todo = null,
100  $depth = -1
101  ) {
102  $this->_rule = $rule;
103  $this->_data = $data;
104  $this->_todo = $todo;
105  $this->_depth = $depth;
106  $this->_transitional = is_numeric($rule);
107 
108  return;
109  }
110 
116  public function getRule()
117  {
118  return $this->_rule;
119  }
120 
126  public function getData()
127  {
128  return $this->_data;
129  }
130 
136  public function getTodo()
137  {
138  return $this->_todo;
139  }
140 
147  public function setDepth($depth)
148  {
149  $old = $this->_depth;
150  $this->_depth = $depth;
151 
152  return $old;
153  }
154 
160  public function getDepth()
161  {
162  return $this->_depth;
163  }
164 
170  public function isTransitional()
171  {
172  return $this->_transitional;
173  }
174 }
__construct($rule, $data, Array $todo=null, $depth=-1)
Definition: Invocation.php:96