コード例 #1
0
 /**
  * Return whether the given requirement equals this one
  *
  * @param   Requirement     $requirement
  *
  * @return  bool
  */
 public function equals(Requirement $requirement)
 {
     if ($requirement instanceof static) {
         return $this->getCondition() === $requirement->getCondition();
     }
     return false;
 }