Skip to content
This repository has been archived by the owner on Sep 8, 2019. It is now read-only.

Commit

Permalink
doc block
Browse files Browse the repository at this point in the history
  • Loading branch information
spiechu committed Jun 9, 2014
1 parent cde1841 commit 339df63
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Spiechu/JSONDiskCache/SetupFiles.php
Expand Up @@ -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);
Expand All @@ -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()) {
Expand Down

0 comments on commit 339df63

Please sign in to comment.