/** * {@inheritdoc} */ public function equals(Binding $other) { if (!parent::equals($other)) { return false; } /* @var ClassBinding $other */ return $this->className === $other->className; }
public function equals(Binding $other) { if (!parent::equals($other)) { return false; } /* @var StringBinding $other */ return $this->string === $other->string; }
/** * {@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; }