diff --git a/src/Spiechu/JSONDiskCache/SetupFiles.php b/src/Spiechu/JSONDiskCache/SetupFiles.php index 86df56e..ccaebb5 100644 --- a/src/Spiechu/JSONDiskCache/SetupFiles.php +++ b/src/Spiechu/JSONDiskCache/SetupFiles.php @@ -13,6 +13,12 @@ class SetupFiles { + /** + * @param string $dirToCreate path to dir + * @param int $perms dir perms + * @return \SplFileInfo created/checked dir + * @throws JSONDiskCacheException + */ public function setupCacheDir($dirToCreate, $perms) { $dir = new \SplFileInfo($dirToCreate); @@ -32,6 +38,13 @@ public function setupCacheDir($dirToCreate, $perms) return $dir; } + /** + * @param \SplFileInfo $dir + * @param string $filename + * @param int $perms file perms + * @return \SplFileInfo + * @throws JSONDiskCacheException + */ public function setupFile(\SplFileInfo $dir, $filename, $perms) { if (!$dir->isDir()) {