private function isSubTypeEquals(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->getSubType(), $mediaType->getSubType()) === 0; }