Beispiel #1
0
 /**
  * visitNegation
  *
  * @param Negation
  * @return void 
  */
 public function visitNegation(Negation $negation)
 {
     $this->printIndentedLine("Negation");
     $this->increaseIndent();
     $negation->getSubExpression()->accept($this);
     $this->decreaseIndent();
 }
Beispiel #2
0
 /**
  * visitNegation
  *
  * @param Negation $negation
  * @return void 
  */
 public function visitNegation(Negation $negation)
 {
     $negation->getSubExpression()->accept($this);
 }
Beispiel #3
0
 public function testToArray()
 {
     $arr = array('Operator' => 'NOT', 'Expression' => $this->word);
     $this->assertEquals($arr, $this->negation->toArray());
 }