original_string: public function setColumnNames(array $names)
      {
          if ($this->featureCount !== 0 && count($names) !== $this->featureCount) {
              throw new InvalidArgumentException(sprintf('Length of the given array should be equal to feature count %s', $this->featureCount));
          }
  
          $this->columnNames = $names;
  
          return $this;
      }
code: public function setColumnNames(array $names)
      {
          if ($this->featureCount !== 0 && count($names) !== $this->featureCount) {
              throw new InvalidArgumentException(sprintf('Length of the given array should be equal to feature count %s', $this->featureCount));
          }
  
          $this->columnNames = $names;
  
          return $this;
      }
code_tokens: public function setColumnNames ( array $ names ) { if ( $ this -> featureCount !== 0 && count ( $ names ) !== $ this -> featureCount ) { throw new InvalidArgumentException ( sprintf ( 'Length of the given array should be equal to feature count %s' , $ this -> featureCount ) ) ; } $ this -> columnNames = $ names ; return $ this ; }
docstring: A string array to represent columns. Useful when HTML output or
  column importances are desired to be inspected.
  
  @return $this
  
  @throws InvalidArgumentException
docstring_tokens: A string array to represent columns . Useful when HTML output or column importances are desired to be inspected .