public function commit(): self
    {
        ($this->fulfill)(
            new Request(
                $this->current()->commitEndpoint(),
                Method::post(),
                new ProtocolVersion(1, 1),
                $this->headers,
                $this->body
            )
        );
        $this->transactions = $this->transactions->dropEnd(1);

        return $this;
    }
public function commit(): self
    {
        ($this->fulfill)(
            new Request(
                $this->current()->commitEndpoint(),
                Method::post(),
                new ProtocolVersion(1, 1),
                $this->headers,
                $this->body
            )
        );
        $this->transactions = $this->transactions->dropEnd(1);

        return $this;
    }
public function commit ( ) : self { ( $ this -> fulfill ) ( new Request ( $ this -> current ( ) -> commitEndpoint ( ) , Method :: post ( ) , new ProtocolVersion ( 1 , 1 ) , $ this -> headers , $ this -> body ) ) ; $ this -> transactions = $ this -> transactions -> dropEnd ( 1 ) ; return $ this ; }
Commit the current transaction

@return self
Commit the current transaction