Webmozart\Expression\Expression::equivalentTo PHP Method

equivalentTo() public method

Returns whether this expression is logically equivalent to another expression.
public equivalentTo ( Webmozart\Expression\Expression $other ) : boolean
$other Webmozart\Expression\Expression Some expression.
return boolean Returns `true` if the expressions are logically equivalent and `false` otherwise.
    public function equivalentTo(Expression $other);

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 public function equivalentTo(Expression $other)
 {
     if (get_class($this) !== get_class($other)) {
         return false;
     }
     /* @var Selector $other */
     return $this->expr->equivalentTo($other->expr);
 }
All Usage Examples Of Webmozart\Expression\Expression::equivalentTo