_rule = $rule; $this->_data = $data; $this->_todo = $todo; $this->_depth = $depth; $this->_transitional = is_int($rule); return; } /** * Get rule name. * * @return string */ public function getRule() { return $this->_rule; } /** * Get data. * * @return mixed */ public function getData() { return $this->_data; } /** * Get todo sequence. * * @return array */ public function getTodo() { return $this->_todo; } /** * Set depth in trace. * * @param int $depth Depth. * @return int */ public function setDepth($depth) { $old = $this->_depth; $this->_depth = $depth; return $old; } /** * Get depth in trace. * * @return int */ public function getDepth() { return $this->_depth; } /** * Check whether the rule is transitional or not. * * @return bool */ public function isTransitional() { return $this->_transitional; } }