Fix docblock

This commit is contained in:
Arkadiusz Kondas 2016-12-12 18:50:27 +01:00
parent fd85033339
commit d32197100e
2 changed files with 14 additions and 3 deletions

View File

@ -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));
} }

View File

@ -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)