Encoder
in package
Table of Contents
Constants
- ERROR_INVALID_COMMAND = 'Unserializable command type %s'
Properties
Methods
- __construct() : mixed
- encode() : array<string|int, mixed>
Constants
ERROR_INVALID_COMMAND
private
mixed
ERROR_INVALID_COMMAND
= 'Unserializable command type %s'
Properties
$converter
private
DataConverterInterface
$converter
Methods
__construct()
public
__construct(DataConverterInterface $dataConverter) : mixed
Parameters
- $dataConverter : DataConverterInterface
encode()
public
encode(CommandInterface $cmd) : array<string|int, mixed>
Parameters
- $cmd : CommandInterface