/** * Implementing the Visitable interface. */ public function accept(Visitor $visitor) { return $visitor->visitConstantNode($this); }
/** * Implementing the Visitable interface. */ public function accept(Visitor $visitor) { return $visitor->visitVariableNode($this); }
/** * Implementing the Visitable interface. */ public function accept(Visitor $visitor) { return $visitor->visitNumberNode($this); }
/** * Implementing the Visitable interface. */ public function accept(Visitor $visitor) { return $visitor->visitExpressionNode($this); }
/** * Implementing the Visitable interface. */ public function accept(Visitor $visitor) { return $visitor->visitRationalNode($this); }