Serializable version of SplPriorityQueue

Also, provides predictable heap order for datums added with the same priority (i.e., they will be emitted in the same order they are enqueued).

package Default

 Methods

Insert a value with a given priority

insert(mixed $datum, mixed $priority) : void

Utilizes {@var $serial} to ensure that values of equal priority are emitted in the same order in which they are inserted.

Parameters

$datum

mixed

$priority

mixed

Serialize

serialize() : string

Returns

string

Serialize to an array

toArray() : array

Array will be priority => data pairs

Returns

array

Deserialize

unserialize(string $data) : void

Parameters

$data

string

 Properties

 

Seed used to ensure queue order for items of the same priority

$serial : integer

Default

PHP_INT_MAX