PHP Class Eloquent\Phony\Event\AbstractEvent

Inheritance: implements Eloquent\Phony\Event\Event
Afficher le fichier Open project: eloquent/phony

Méthodes publiques

Méthode 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 méthode

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 méthode

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
Résultat integer The sequence number.

time() public méthode

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