Copied!

EventOrder

EventOrder.php : 18
Final

Orders events by second, then by type identifier; events of the same second and type keep their source's order.

Tags
See
EventSourceInterface

Methods

publiccompare()

EventOrder.php : 23

Returns 0 for events of the same second and type, as their event source defines their order.

public static compare(Event $a, Event $b) : int

Parameters

Name Type Default value Description
$a Event - -
$b Event - -

Return values

int

publiccompareEventTypes()

EventOrder.php : 45

Returns a negative number if events of type $a come before events of type $b scheduled at the same second.

public static compareEventTypes(string $a, string $b) : int

Parameters

Name Type Default value Description
$a string - -
$b string - -

Return values

int

publiccompareWithCursor()

EventOrder.php : 34

Compares an event with the event pointed by the cursor, like {@see compare()}.

public static compareWithCursor(Event $event, Cursor $cursor) : int

Parameters

Name Type Default value Description
$event Event - -
$cursor Cursor - -

Return values

int