original_string: public function setSeparator($separator)
      {
          if (!is_string($separator)) {
              throw new Exception\InvalidArgumentException('"' . $separator . '" is not a valid separator.');
          }
          $this->separator = $separator;
          return $this;
      }
code: public function setSeparator($separator)
      {
          if (!is_string($separator)) {
              throw new Exception\InvalidArgumentException('"' . $separator . '" is not a valid separator.');
          }
          $this->separator = $separator;
          return $this;
      }
code_tokens: public function setSeparator ( $ separator ) { if ( ! is_string ( $ separator ) ) { throw new Exception \ InvalidArgumentException ( '"' . $ separator . '" is not a valid separator.' ) ; } $ this -> separator = $ separator ; return $ this ; }
docstring: Sets a new separator
  
  @param  string $separator Separator
  @return self
  @throws Exception\InvalidArgumentException
docstring_tokens: Sets a new separator