/** * Create a new node and set it as the current node * @return epQueryNode */ protected function node($type) { // create a node with type $this->n = new epQueryNode($type); // set line and char if (isset($this->t) && isset($this->t->line)) { $this->n->setParam('line', $this->t->line); } if (isset($this->t) && isset($this->t->char)) { $this->n->setParam('char', $this->t->char); } // return this node return $this->n; }