Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/FastPriorityQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Iterator;
use Countable;
use Serializable;
use SplPriorityQueue;

/**
* This is an efficient implementation of an integer priority queue in PHP
Expand All @@ -23,9 +24,9 @@
*/
class FastPriorityQueue implements Iterator, Countable, Serializable
{
const EXTR_DATA = 0x00000001;
const EXTR_PRIORITY = 0x00000002;
const EXTR_BOTH = 0x00000003;
const EXTR_DATA = SplPriorityQueue::EXTR_DATA;
const EXTR_PRIORITY = SplPriorityQueue::EXTR_PRIORITY;
const EXTR_BOTH = SplPriorityQueue::EXTR_BOTH;

/**
* @var integer
Expand Down