コード例 #1
0
ファイル: ClassBinding.php プロジェクト: webmozart/discovery
 /**
  * {@inheritdoc}
  */
 public function equals(Binding $other)
 {
     if (!parent::equals($other)) {
         return false;
     }
     /* @var ClassBinding $other */
     return $this->className === $other->className;
 }
コード例 #2
0
ファイル: StringBinding.php プロジェクト: webmozart/discovery
 public function equals(Binding $other)
 {
     if (!parent::equals($other)) {
         return false;
     }
     /* @var StringBinding $other */
     return $this->string === $other->string;
 }
コード例 #3
0
ファイル: ResourceBinding.php プロジェクト: puli/repository
 /**
  * {@inheritdoc}
  */
 public function equals(Binding $other)
 {
     if (!parent::equals($other)) {
         return false;
     }
     /** @var ResourceBinding $other */
     if ($this->query !== $other->query) {
         return false;
     }
     return $this->language === $other->language;
 }