original_string: public function getScales($computerId)
      {
          $endPointUrl = $this->apiurl."/computer/";
          $endPointUrl.= $computerId;
          $endPointUrl.= '/scales';
  
          $response = $this->curlGet($endPointUrl);
  
  
          if ($response->getStatusCode() != '200') {
              throw new \RuntimeException(
                  sprintf(
                      'HTTP Error (%d): %s',
                      $response->getStatusCode(),
                      $response->getStatusMessage()
                  )
              );
          }
  
          return Entity::makeFromResponse("PrintNode\Scale", json_decode($response->getContent()));
      }
code: public function getScales($computerId)
      {
          $endPointUrl = $this->apiurl."/computer/";
          $endPointUrl.= $computerId;
          $endPointUrl.= '/scales';
  
          $response = $this->curlGet($endPointUrl);
  
  
          if ($response->getStatusCode() != '200') {
              throw new \RuntimeException(
                  sprintf(
                      'HTTP Error (%d): %s',
                      $response->getStatusCode(),
                      $response->getStatusMessage()
                  )
              );
          }
  
          return Entity::makeFromResponse("PrintNode\Scale", json_decode($response->getContent()));
      }
code_tokens: public function getScales ( $ computerId ) { $ endPointUrl = $ this -> apiurl . "/computer/" ; $ endPointUrl .= $ computerId ; $ endPointUrl .= '/scales' ; $ response = $ this -> curlGet ( $ endPointUrl ) ; if ( $ response -> getStatusCode ( ) != '200' ) { throw new \ RuntimeException ( sprintf ( 'HTTP Error (%d): %s' , $ response -> getStatusCode ( ) , $ response -> getStatusMessage ( ) ) ) ; } return Entity :: makeFromResponse ( "PrintNode\Scale" , json_decode ( $ response -> getContent ( ) ) ) ; }
docstring: Gets scales relative to a computer.
  @param string $computerId id of computer to find scales
  @return Entity[]
docstring_tokens: Gets scales relative to a computer .