public function insert($datum, $priority) {
        if (is_int($priority)) {
            $priority = [$priority, $this->queueOrder--];
        }

        parent::insert($datum, $priority);
    }
public function insert($datum, $priority) {
        if (is_int($priority)) {
            $priority = [$priority, $this->queueOrder--];
        }

        parent::insert($datum, $priority);
    }
public function insert ( $ datum , $ priority ) { if ( is_int ( $ priority ) ) { $ priority = [ $ priority , $ this -> queueOrder -- ] ; } parent :: insert ( $ datum , $ priority ) ; }
Add an entry to the queue

@param mixed $datum The entry to add
@param int $priority The priority of the entry in the queue
Add an entry to the queue