public function insert($value, $priority)
    {
        if (is_int($priority)) {
            $priority = [$priority, $this->counter--];
        }
        parent::insert($value, $priority);
    }
public function insert($value, $priority)
    {
        if (is_int($priority)) {
            $priority = [$priority, $this->counter--];
        }
        parent::insert($value, $priority);
    }
public function insert ( $ value , $ priority ) { if ( is_int ( $ priority ) ) { $ priority = [ $ priority , $ this -> counter -- ] ; } parent :: insert ( $ value , $ priority ) ; }
Insert a value into the queue

@param mixed $value The value to insert
@param mixed $priority The priority to give the value
Insert a value into the queue