PHP Interface Neomerx\JsonApi\Contracts\Codec\CodecMatcherInterface

Afficher le fichier Open project: neomerx/json-api Interface Usage Examples

Méthodes publiques

Méthode Description
getDecoder ( ) : Neomerx\JsonApi\Contracts\Decoder\DecoderInterface | null Get decoder.
getDecoderHeaderMatchedType ( ) : Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | null Get media type from 'Content-Type' header that matched to one of the registered decoder media types.
getDecoderRegisteredMatchedType ( ) : Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | null Get media type that was registered for matched decoder.
getEncoder ( ) : Neomerx\JsonApi\Contracts\Encoder\EncoderInterface | null Get encoder.
getEncoderHeaderMatchedType ( ) : Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface | null Get media type from 'Accept' header that matched to one of the registered encoder media types.
getEncoderRegisteredMatchedType ( ) : Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | null Get media type that was registered for matched encoder.
matchDecoder ( Neomerx\JsonApi\Contracts\Http\Headers\HeaderInterface $contentTypeHeader ) : void Find best decoder match for 'Content-Type' header.
matchEncoder ( Neomerx\JsonApi\Contracts\Http\Headers\AcceptHeaderInterface $acceptHeader ) : void Find best encoder match for 'Accept' header.
registerDecoder ( Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface $mediaType, Closure $decoderClosure ) : void Register decoder.
registerEncoder ( Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface $mediaType, Closure $encoderClosure ) : void Register encoder.
setDecoder ( Neomerx\JsonApi\Contracts\Decoder\DecoderInterface | Closur\Closure $decoder ) : Neomerx\JsonApi\Contracts\Decoder\DecoderInterface Set decoder.
setEncoder ( Neomerx\JsonApi\Contracts\Encoder\EncoderInterface | Closur\Closure $encoder ) : void Set encoder.

Method Details

getDecoder() public méthode

Get decoder.
public getDecoder ( ) : Neomerx\JsonApi\Contracts\Decoder\DecoderInterface | null
Résultat Neomerx\JsonApi\Contracts\Decoder\DecoderInterface | null

getDecoderHeaderMatchedType() public méthode

Get media type from 'Content-Type' header that matched to one of the registered decoder media types.
public getDecoderHeaderMatchedType ( ) : Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | null
Résultat Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | null

getDecoderRegisteredMatchedType() public méthode

Get media type that was registered for matched decoder.
public getDecoderRegisteredMatchedType ( ) : Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | null
Résultat Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | null

getEncoder() public méthode

Get encoder.
public getEncoder ( ) : Neomerx\JsonApi\Contracts\Encoder\EncoderInterface | null
Résultat Neomerx\JsonApi\Contracts\Encoder\EncoderInterface | null

getEncoderHeaderMatchedType() public méthode

Get media type from 'Accept' header that matched to one of the registered encoder media types.
public getEncoderHeaderMatchedType ( ) : Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface | null
Résultat Neomerx\JsonApi\Contracts\Http\Headers\AcceptMediaTypeInterface | null

getEncoderRegisteredMatchedType() public méthode

Get media type that was registered for matched encoder.
public getEncoderRegisteredMatchedType ( ) : Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | null
Résultat Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | null

matchDecoder() public méthode

Find best decoder match for 'Content-Type' header.
public matchDecoder ( Neomerx\JsonApi\Contracts\Http\Headers\HeaderInterface $contentTypeHeader ) : void
$contentTypeHeader Neomerx\JsonApi\Contracts\Http\Headers\HeaderInterface
Résultat void

matchEncoder() public méthode

Find best encoder match for 'Accept' header.
public matchEncoder ( Neomerx\JsonApi\Contracts\Http\Headers\AcceptHeaderInterface $acceptHeader ) : void
$acceptHeader Neomerx\JsonApi\Contracts\Http\Headers\AcceptHeaderInterface
Résultat void

registerDecoder() public méthode

Register decoder.
public registerDecoder ( Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface $mediaType, Closure $decoderClosure ) : void
$mediaType Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface
$decoderClosure Closure
Résultat void

registerEncoder() public méthode

Register encoder.
public registerEncoder ( Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface $mediaType, Closure $encoderClosure ) : void
$mediaType Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface
$encoderClosure Closure
Résultat void

setDecoder() public méthode

Set decoder.
public setDecoder ( Neomerx\JsonApi\Contracts\Decoder\DecoderInterface | Closur\Closure $decoder ) : Neomerx\JsonApi\Contracts\Decoder\DecoderInterface
$decoder Neomerx\JsonApi\Contracts\Decoder\DecoderInterface | Closur\Closure
Résultat Neomerx\JsonApi\Contracts\Decoder\DecoderInterface

setEncoder() public méthode

Set encoder.
public setEncoder ( Neomerx\JsonApi\Contracts\Encoder\EncoderInterface | Closur\Closure $encoder ) : void
$encoder Neomerx\JsonApi\Contracts\Encoder\EncoderInterface | Closur\Closure
Résultat void