Пример #1
0
 /**
  * @param MediaTypeInterface $mediaType
  *
  * @return bool
  */
 private function isTypeEquals(MediaTypeInterface $mediaType)
 {
     return $this->getType() === $mediaType->getType();
 }
Пример #2
0
 /**
  * @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;
 }