ProtoJsonConverter
extends Converter
in package
Table of Contents
Methods
- fromPayload() : Message
- 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.
- create() : Payload
Methods
fromPayload()
public
fromPayload(Payload $payload, Type $type) : Message
Parameters
- $payload : Payload
- $type : Type
Tags
Return values
MessagegetEncodingType()
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
Return values
Payload|nullcreate()
protected
create(string $data) : Payload
Parameters
- $data : string