getConstraint2() 공개 메소드

Return 2nd constraint.
public getConstraint2 ( ) : Constraint
리턴 Constraint
예제 #1
0
 private function visitComposite(Composite $composite)
 {
     $this->doVisit($composite->getConstraint1());
     $this->doVisit($composite->getConstraint2());
 }
예제 #2
0
 private function visitComposite(Composite $composite)
 {
     if (!isset($this->compositeMap[$composite->getOperator()])) {
         throw new \InvalidArgumentException(sprintf('Unknown composite operator "%s", allowed "%s"', $composite->getOperator(), implode('", "', array_keys($this->compositeMap))));
     }
     return sprintf('(%s %s %s)', $this->doVisit($composite->getConstraint1()), $this->compositeMap[$composite->getOperator()], $this->doVisit($composite->getConstraint2()));
 }