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
Methods¶
compare()
¶
EventOrder.php
:
23
Returns 0 for events of the same second and type, as their event source defines their order.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $a | Event | - | - |
| $b | Event | - | - |
Return values
int
compareEventTypes()
¶
EventOrder.php
:
45
Returns a negative number if events of type $a come before events of type $b scheduled at the same second.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $a | string | - | - |
| $b | string | - | - |
Return values
int
compareWithCursor()
¶
EventOrder.php
:
34
Compares an event with the event pointed by the cursor, like {@see compare()}.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $event | Event | - | - |
| $cursor | Cursor | - | - |
Return values
int