public function setWordSeparator($separator) { if (!is_string($separator)) { throw new \InvalidArgumentException('Expected string'); } $this->setParameter(self::PARAMETER_WORD_SEPARATOR, $separator); return $this; }