mirror of
https://github.com/Llewellynvdm/php-ml.git
synced 2024-11-28 15:56:36 +00:00
Fix docblock
This commit is contained in:
parent
fd85033339
commit
d32197100e
@ -7,22 +7,31 @@ namespace Phpml\Exception;
|
|||||||
class DatasetException extends \Exception
|
class DatasetException extends \Exception
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
* @param string $filepath
|
||||||
|
*
|
||||||
* @return DatasetException
|
* @return DatasetException
|
||||||
*/
|
*/
|
||||||
public static function missingFile($filepath)
|
public static function missingFile(string $filepath)
|
||||||
{
|
{
|
||||||
return new self(sprintf('Dataset file "%s" missing.', $filepath));
|
return new self(sprintf('Dataset file "%s" missing.', $filepath));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param string $path
|
||||||
|
*
|
||||||
* @return DatasetException
|
* @return DatasetException
|
||||||
*/
|
*/
|
||||||
public static function missingFolder($path)
|
public static function missingFolder(string $path)
|
||||||
{
|
{
|
||||||
return new self(sprintf('Dataset root folder "%s" missing.', $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));
|
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
|
* @return InvalidArgumentException
|
||||||
*/
|
*/
|
||||||
public static function invalidStopWordsLanguage(string $language)
|
public static function invalidStopWordsLanguage(string $language)
|
||||||
|
Loading…
Reference in New Issue
Block a user