public function dequeuePlain()
    {
        $document = $this->collection
            ->find()
            ->sort(array(
                'priority' => -1,
                'datetime' => 1,
            ))
            ->findAndRemove();
        
        if (!$document) {
            return null;
        }
        
        return $document->get('payload');
    }
public function dequeuePlain()
    {
        $document = $this->collection
            ->find()
            ->sort(array(
                'priority' => -1,
                'datetime' => 1,
            ))
            ->findAndRemove();
        
        if (!$document) {
            return null;
        }
        
        return $document->get('payload');
    }
public function dequeuePlain ( ) { $ document = $ this -> collection -> find ( ) -> sort ( array ( 'priority' => - 1 , 'datetime' => 1 , ) ) -> findAndRemove ( ) ; if ( ! $ document ) { return null ; } return $ document -> get ( 'payload' ) ; }
Get item from queue as is

@return mixed
Get item from queue as is