Bucket
in package
Class \Hoa\Event\Bucket.
This class is the object which is transmit through event channels.
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- Set data.
- getData() : mixed
- Get data.
- getSource() : Source
- Get source.
- send() : void
- Send this object on the event channel.
- setData() : mixed
- Set data.
- setSource() : Source
- Set source.
Properties
$_data
Data.
protected
mixed
$_data
= null
$_source
Source object.
protected
Source
$_source
= null
Methods
__construct()
Set data.
public
__construct([mixed $data = null ]) : mixed
Parameters
- $data : mixed = null
-
Data.
getData()
Get data.
public
getData() : mixed
getSource()
Get source.
public
getSource() : Source
Return values
Sourcesend()
Send this object on the event channel.
public
send(string $eventId, Source $source) : void
Parameters
- $eventId : string
-
Event ID.
- $source : Source
-
Source.
setData()
Set data.
public
setData(mixed $data) : mixed
Parameters
- $data : mixed
-
Data.
setSource()
Set source.
public
setSource(Source $source) : Source
Parameters
- $source : Source
-
Source.