public function accept(AcceptMediaTypeInterface $mediaType): bool
    {
        // if quality factor 'q' === 0 it means this type is not acceptable (RFC 2616 #3.9)
        if (0 === $mediaType->getQuality()) {
            return false;
        }

        return $this->matchesTo($mediaType);
    }
public function accept(AcceptMediaTypeInterface $mediaType): bool
    {
        // if quality factor 'q' === 0 it means this type is not acceptable (RFC 2616 #3.9)
        if (0 === $mediaType->getQuality()) {
            return false;
        }

        return $this->matchesTo($mediaType);
    }
public function accept ( AcceptMediaTypeInterface $ mediaType ) : bool { // if quality factor 'q' === 0 it means this type is not acceptable (RFC 2616 #3.9) if ( 0 === $ mediaType -> getQuality ( ) ) { return false ; } return $ this -> matchesTo ( $ mediaType ) ; }
Is the encoding acceptable?

@param AcceptMediaTypeInterface $mediaType
@return bool
Is the encoding acceptable?