PayloadConverterInterface
in
Table of Contents
Methods
- fromPayload() : mixed
- getEncodingType() : string
- Returns associated encoding type.
- toPayload() : Payload|null
- Implements conversion of a single value to Payload. Must return null if value can't be encoded.
Methods
fromPayload()
public
fromPayload(Payload $payload, Type $type) : mixed
Parameters
- $payload : Payload
- $type : Type
Tags
getEncodingType()
Returns associated encoding type.
public
getEncodingType() : string
Return values
stringtoPayload()
Implements conversion of a single value to Payload. Must return null if value can't be encoded.
public
toPayload(mixed $value) : Payload|null
Parameters
- $value : mixed