original_string: public function cleanPhone($phone)
      {
          $response = $this->query($this->prepareUri('clean/phone'), [$phone]);
          $result = $this->populate(new Phone, $response);
          if (!$result instanceof Phone) {
              throw new RuntimeException('Unexpected populate result: ' . get_class($result). '. Expected: ' . Phone::class);
          }
          return $result;
      }
code: public function cleanPhone($phone)
      {
          $response = $this->query($this->prepareUri('clean/phone'), [$phone]);
          $result = $this->populate(new Phone, $response);
          if (!$result instanceof Phone) {
              throw new RuntimeException('Unexpected populate result: ' . get_class($result). '. Expected: ' . Phone::class);
          }
          return $result;
      }
code_tokens: public function cleanPhone ( $ phone ) { $ response = $ this -> query ( $ this -> prepareUri ( 'clean/phone' ) , [ $ phone ] ) ; $ result = $ this -> populate ( new Phone , $ response ) ; if ( ! $ result instanceof Phone ) { throw new RuntimeException ( 'Unexpected populate result: ' . get_class ( $ result ) . '. Expected: ' . Phone :: class ) ; } return $ result ; }
docstring: Cleans phone.
  
  @param string $phone
  
  @return Phone
  @throws RuntimeException
  @throws InvalidArgumentException
docstring_tokens: Cleans phone .