/** * {@inheritdoc} */ public function compare(CookieInterface $cookie) { return $this->name === $cookie->getName() && $this->getAttribute(self::ATTR_DOMAIN) === $cookie->getAttribute(self::ATTR_DOMAIN) && $this->getAttribute(self::ATTR_PATH) === $cookie->getAttribute(self::ATTR_PATH); }