Skip to content

Commit

Permalink
Fix docblock
Browse files Browse the repository at this point in the history
  • Loading branch information
akondas committed Dec 12, 2016
1 parent fd85033 commit d321971
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/Phpml/Exception/DatasetException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,31 @@
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));
}
Expand Down
2 changes: 2 additions & 0 deletions src/Phpml/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ public static function invalidClustersNumber()
}

/**
* @param string $language
*
* @return InvalidArgumentException
*/
public static function invalidStopWordsLanguage(string $language)
Expand Down

0 comments on commit d321971

Please sign in to comment.