Encoder
in package
Tags
Table of Contents
Constants
- ERROR_INVALID_COMMAND = 'Unserializable command type %s'
Properties
Methods
- __construct() : mixed
- encode() : Message
Constants
ERROR_INVALID_COMMAND
private
mixed
ERROR_INVALID_COMMAND
= 'Unserializable command type %s'
Properties
$converter read-only
private
DataConverterInterface
$converter
Methods
__construct()
public
__construct(DataConverterInterface $converter) : mixed
Parameters
- $converter : DataConverterInterface
encode()
public
encode(CommandInterface $cmd) : Message
Parameters
- $cmd : CommandInterface