original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Commit the current transaction
  
  @return self
docstring_tokens: Commit the current transaction