mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-24 13:57:33 +00:00
Fix docblock
This commit is contained in:
parent
fd85033339
commit
d32197100e
@ -7,22 +7,31 @@ namespace Phpml\Exception;
|
||||
class DatasetException extends \Exception
|
||||
{
|
||||
/**
|
||||
* @param string $filepath
|
||||
*
|
||||
* @return DatasetException
|
||||
*/
|
||||
public static function missingFile($filepath)
|
||||
public static function missingFile(string $filepath)
|
||||
{
|
||||
return new self(sprintf('Dataset file "%s" missing.', $filepath));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $path
|
||||
*
|
||||
* @return DatasetException
|
||||
*/
|
||||
public static function missingFolder($path)
|
||||
public static function missingFolder(string $path)
|
||||
{
|
||||
return new self(sprintf('Dataset root folder "%s" missing.', $path));
|
||||
}
|
||||
|
||||
public static function cantOpenFile($filepath)
|
||||
/**
|
||||
* @param string $filepath
|
||||
*
|
||||
* @return DatasetException
|
||||
*/
|
||||
public static function cantOpenFile(string $filepath)
|
||||
{
|
||||
return new self(sprintf('Dataset file "%s" can\'t be open.', $filepath));
|
||||
}
|
||||
|
@ -67,6 +67,8 @@ class InvalidArgumentException extends \Exception
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $language
|
||||
*
|
||||
* @return InvalidArgumentException
|
||||
*/
|
||||
public static function invalidStopWordsLanguage(string $language)
|
||||
|
Loading…
Reference in New Issue
Block a user