Метод | Описание | |
---|---|---|
__construct ( Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface[] $unsortedMediaTypes ) | ||
parse ( $header, $accept = self::HEADER_ACCEPT ) : Neomerx\JsonApi\Contracts\Http\Headers\AcceptHeaderInterface |
Метод | Описание | |
---|---|---|
newInstance ( $name, $mediaTypes ) : Neomerx\JsonApi\Contracts\Http\Headers\AcceptHeaderInterface | ||
parseMediaType ( $position, $mediaType ) : Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface |
Метод | Описание | |
---|---|---|
compareParameters ( array | null $lhs, array | null $rhs ) : integer | ||
compareQuality ( float $lhs, float $rhs ) : integer | ||
compareStrings ( string $lhs, string $rhs ) : integer | ||
getMediaTypeCompareClosure ( ) : Closure |
public __construct ( Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface[] $unsortedMediaTypes ) | ||
$unsortedMediaTypes | Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface[] |
protected static newInstance ( $name, $mediaTypes ) : Neomerx\JsonApi\Contracts\Http\Headers\AcceptHeaderInterface | ||
Результат | Neomerx\JsonApi\Contracts\Http\Headers\AcceptHeaderInterface |
public static parse ( $header, $accept = self::HEADER_ACCEPT ) : Neomerx\JsonApi\Contracts\Http\Headers\AcceptHeaderInterface | ||
Результат | Neomerx\JsonApi\Contracts\Http\Headers\AcceptHeaderInterface |
protected static parseMediaType ( $position, $mediaType ) : Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface | ||
Результат | Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface |