/** * @param MediaTypeInterface $mediaType * * @return bool */ private function isTypeEquals(MediaTypeInterface $mediaType) { return $this->getType() === $mediaType->getType(); }
/** * @param MediaTypeInterface $mediaType * * @return bool */ private function isTypeEquals(MediaTypeInterface $mediaType) { // Type, subtype and param name should be compared case-insensitive // https://tools.ietf.org/html/rfc7231#section-3.1.1.1 return strcasecmp($this->getType(), $mediaType->getType()) === 0; }