EventMessage
in package
implements
MessageInterface
Table of Contents
Interfaces
Properties
- $event : EventInterface
- The event.
- $type : string
- Message type.
Methods
- __construct() : mixed
- generate() : string
- Generate the message ready to be sent to a relay.
- setType() : void
- getType() : string
Properties
$event
The event.
protected
EventInterface
$event
$type
Message type.
private
string
$type
Methods
__construct()
public
__construct(EventInterface $event) : mixed
Parameters
- $event : EventInterface
generate()
Generate the message ready to be sent to a relay.
public
generate() : string
Return values
stringsetType()
public
setType(MessageTypeEnum $type) : void
Parameters
- $type : MessageTypeEnum
getType()
private
getType() : string