create stop words class

This commit is contained in:
Arkadiusz Kondas 2016-06-14 11:53:58 +02:00
parent 2f51716388
commit 1ac4b44ee4

View File

@ -65,4 +65,12 @@ class InvalidArgumentException extends \Exception
{ {
return new self('Invalid clusters number'); return new self('Invalid clusters number');
} }
/**
* @return InvalidArgumentException
*/
public static function invalidStopWordsLanguage(string $language)
{
return new self(sprintf('Can\'t find %s language for StopWords', $language));
}
} }