메소드 | 설명 | |
---|---|---|
__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 |