/**
  * 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);
 }
Exemple #3
0
 /**
  * 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);
 }