public function dequeue()
    {
        $value = $this->dequeuePlain();
        if (!is_array($value)) {
            return $value;
        }

        $structure = new Structure();
        $structure->mergeUnmodified($value);

        return $structure;
    }
public function dequeue()
    {
        $value = $this->dequeuePlain();
        if (!is_array($value)) {
            return $value;
        }

        $structure = new Structure();
        $structure->mergeUnmodified($value);

        return $structure;
    }
public function dequeue ( ) { $ value = $ this -> dequeuePlain ( ) ; if ( ! is_array ( $ value ) ) { return $ value ; } $ structure = new Structure ( ) ; $ structure -> mergeUnmodified ( $ value ) ; return $ structure ; }
Get item from queue as Structure if array put into queue

@return mixed|\Sokil\Mongo\Structure
Get item from queue as Structure if array put into queue