original_string: public function getSettlement(CardPayments\Settlement $settlement)
      {
          $settlement->setRequiredFields(array('id'));
          $settlement->checkRequiredFields();
  
          $request = new Request(array(
               'method' => Request::GET,
               'uri' => $this->prepareURI("/settlements/" . $settlement->id)
          ));
  
          $response = $this->client->processRequest($request);
          return new CardPayments\Settlement($response);
      }
code: public function getSettlement(CardPayments\Settlement $settlement)
      {
          $settlement->setRequiredFields(array('id'));
          $settlement->checkRequiredFields();
  
          $request = new Request(array(
               'method' => Request::GET,
               'uri' => $this->prepareURI("/settlements/" . $settlement->id)
          ));
  
          $response = $this->client->processRequest($request);
          return new CardPayments\Settlement($response);
      }
code_tokens: public function getSettlement ( CardPayments \ Settlement $ settlement ) { $ settlement -> setRequiredFields ( array ( 'id' ) ) ; $ settlement -> checkRequiredFields ( ) ; $ request = new Request ( array ( 'method' => Request :: GET , 'uri' => $ this -> prepareURI ( "/settlements/" . $ settlement -> id ) ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new CardPayments \ Settlement ( $ response ) ; }
docstring: Get the settlement.
  
  @param CardPayments\Settlement $settlement
  @return CardPayments\Settlement
  @throws PaysafeException
docstring_tokens: Get the settlement .