public function setSeparator($separator)
    {
        if (!is_string($separator)) {
            throw new Exception\InvalidArgumentException('"' . $separator . '" is not a valid separator.');
        }
        $this->separator = $separator;
        return $this;
    }
public function setSeparator($separator)
    {
        if (!is_string($separator)) {
            throw new Exception\InvalidArgumentException('"' . $separator . '" is not a valid separator.');
        }
        $this->separator = $separator;
        return $this;
    }
public function setSeparator ( $ separator ) { if ( ! is_string ( $ separator ) ) { throw new Exception \ InvalidArgumentException ( '"' . $ separator . '" is not a valid separator.' ) ; } $ this -> separator = $ separator ; return $ this ; }
Sets a new separator

@param  string $separator Separator
@return self
@throws Exception\InvalidArgumentException
Sets a new separator