DataConverter
in package
implements
DataConverterInterface
FinalYes
Table of Contents
Interfaces
Properties
- $converters : array<string|int, PayloadConverterInterface>
Methods
- __construct() : mixed
- createDefault() : DataConverterInterface
- fromPayload() : mixed
- toPayload() : Payload
Properties
$converters
private
array<string|int, PayloadConverterInterface>
$converters
= []
Methods
__construct()
public
__construct(PayloadConverterInterface ...$converter) : mixed
Parameters
- $converter : PayloadConverterInterface
createDefault()
public
static createDefault() : DataConverterInterface
Return values
DataConverterInterfacefromPayload()
public
fromPayload(Payload $payload, mixed $type) : mixed
Parameters
- $payload : Payload
- $type : mixed
toPayload()
public
toPayload(mixed $value) : Payload
Parameters
- $value : mixed