public function nextPending()
    {
        if (!$this->hasPending()) {
            return null;
        }

        $current = $this->pending->current();
        $this->pending->next();

        return $current;
    }
public function nextPending()
    {
        if (!$this->hasPending()) {
            return null;
        }

        $current = $this->pending->current();
        $this->pending->next();

        return $current;
    }
public function nextPending ( ) { if ( ! $ this -> hasPending ( ) ) { return null ; } $ current = $ this -> pending -> current ( ) ; $ this -> pending -> next ( ) ; return $ current ; }
Pop the next transaction from the transaction queue

@return TransactionInterface|null
Pop the next transaction from the transaction queue