BinaryConverter
extends Converter
in package
Table of Contents
Methods
- fromPayload() : Bytes
- 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) : Bytes
Parameters
- $payload : Payload
- $type : Type
Return values
BytesgetEncodingType()
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