public function current()
    {
        switch ($this->extractFlag) {
            case self::EXTR_DATA:
                return current($this->values[$this->maxPriority]);
            case self::EXTR_PRIORITY:
                return $this->maxPriority;
            case self::EXTR_BOTH:
                return [
                    'data'     => current($this->values[$this->maxPriority]),
                    'priority' => $this->maxPriority
                ];
        }
    }
public function current()
    {
        switch ($this->extractFlag) {
            case self::EXTR_DATA:
                return current($this->values[$this->maxPriority]);
            case self::EXTR_PRIORITY:
                return $this->maxPriority;
            case self::EXTR_BOTH:
                return [
                    'data'     => current($this->values[$this->maxPriority]),
                    'priority' => $this->maxPriority
                ];
        }
    }
public function current ( ) { switch ( $ this -> extractFlag ) { case self :: EXTR_DATA : return current ( $ this -> values [ $ this -> maxPriority ] ) ; case self :: EXTR_PRIORITY : return $ this -> maxPriority ; case self :: EXTR_BOTH : return [ 'data' => current ( $ this -> values [ $ this -> maxPriority ] ) , 'priority' => $ this -> maxPriority ] ; } }
Get the current element in the queue

@return mixed
Get the current element in the queue