PHP Class Eloquent\Phony\Event\AbstractEvent

Inheritance: implements Eloquent\Phony\Event\Event
Show file Open project: eloquent/phony

Public Methods

Method Description
__construct ( integer $sequenceNumber, float $time ) Construct a new event.
sequenceNumber ( ) : integer Get the sequence number.
time ( ) : float Get the time at which the event occurred.

Method Details

__construct() public method

Construct a new event.
public __construct ( integer $sequenceNumber, float $time )
$sequenceNumber integer The sequence number.
$time float The time at which the event occurred, in seconds since the Unix epoch.

sequenceNumber() public method

The sequence number is a unique number assigned to every event that Phony records. The numbers are assigned sequentially, meaning that sequence numbers can be used to determine event order.
public sequenceNumber ( ) : integer
return integer The sequence number.

time() public method

Get the time at which the event occurred.
public time ( ) : float
return float The time at which the event occurred, in seconds since the Unix epoch.