Hoa central
Public Member Functions | Protected Attributes | List of all members
Hoa\Core\Event\Bucket Class Reference

Public Member Functions

 __construct ($data=null)
 
 send ($eventId, Source $source)
 
 setSource (Source $source)
 
 getSource ()
 
 setData ($data)
 
 getData ()
 

Protected Attributes

 $_source = null
 
 $_data = null
 

Detailed Description

Class .

This class is the object which is transmit through event channels.

Definition at line 61 of file Event.php.

Constructor & Destructor Documentation

Hoa\Core\Event\Bucket::__construct (   $data = null)

Set data.

Parameters
mixed$dataData.
Returns
void

Definition at line 85 of file Event.php.

86  {
87  $this->setData($data);
88 
89  return;
90  }

Here is the call graph for this function:

Member Function Documentation

Hoa\Core\Event\Bucket::getData ( )

Get data.

Returns
mixed

Definition at line 148 of file Event.php.

149  {
150  return $this->_data;
151  }
Hoa\Core\Event\Bucket::getSource ( )

Get source.

Returns

Definition at line 124 of file Event.php.

125  {
126  return $this->_source;
127  }
Hoa\Core\Event\Bucket::send (   $eventId,
Source  $source 
)

Send this object on the event channel.

Parameters
string$eventIdEvent ID.
\Hoa\Core\Event\Source$sourceSource.
Returns
void
Exceptions

Definition at line 100 of file Event.php.

101  {
102  return Event::notify($eventId, $source, $this);
103  }
static notify($eventId, Source $source, Bucket $data)
Definition: Event.php:329

Here is the call graph for this function:

Hoa\Core\Event\Bucket::setData (   $data)

Set data.

Parameters
mixed$dataData.
Returns
mixed

Definition at line 135 of file Event.php.

136  {
137  $old = $this->_data;
138  $this->_data = $data;
139 
140  return $old;
141  }

Here is the caller graph for this function:

Hoa\Core\Event\Bucket::setSource ( Source  $source)

Set source.

Parameters
\Hoa\Core\Event\Source$sourceSource.
Returns

Definition at line 111 of file Event.php.

112  {
113  $old = $this->_source;
114  $this->_source = $source;
115 
116  return $old;
117  }

Here is the caller graph for this function:

Member Data Documentation

Hoa\Core\Event\Bucket::$_data = null
protected

Definition at line 75 of file Event.php.

Hoa\Core\Event\Bucket::$_source = null
protected

Definition at line 68 of file Event.php.


The documentation for this class was generated from the following file: