Пример #1
0
 /**
  * @param Condition $condition
  * @return bool
  */
 public function equalsTo($condition)
 {
     if ($this === $condition) {
         return true;
     }
     $className = __CLASS__;
     if (!$condition instanceof $className) {
         return false;
     }
     return $this->getName() == $condition->getName();
 }
Пример #2
0
 /**
  * @param Condition|IsAjax $condition
  * @return bool
  */
 public function equalsTo($condition)
 {
     if (!parent::equalsTo($condition)) {
         return false;
     }
     return $this->isAjax() === $condition->isAjax();
 }
Пример #3
0
 /**
  * @param Condition|Method $condition
  * @return bool
  */
 public function equalsTo($condition)
 {
     if (!parent::equalsTo($condition)) {
         return false;
     }
     return $this->methods == $condition->getMethods();
 }