diff options
Diffstat (limited to 'src/Filesystem/CreateDirectory.php')
-rw-r--r-- | src/Filesystem/CreateDirectory.php | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/Filesystem/CreateDirectory.php b/src/Filesystem/CreateDirectory.php index 64c5fba..2621169 100644 --- a/src/Filesystem/CreateDirectory.php +++ b/src/Filesystem/CreateDirectory.php @@ -2,21 +2,16 @@ namespace App\Filesystem; +use App\Task\TaskInterface; + /** * Class to create a new directory * * @author Phil Burton <phil@d3r.com> */ -class CreateDirectory +class CreateDirectory implements TaskInterface { /** - * Thing we're creating - * - * @author Phil Burton <phil@d3r.com> - */ - protected $thing = "directory"; - - /** * Directory to create * * @var string @@ -34,7 +29,7 @@ class CreateDirectory $this->directory = $directory; if (!is_writable(dirname($directory))) { - throw new \Exception('Cannot create ' . $this->thing . ' at: ' . $directory); + throw new \Exception('Cannot create directory at: ' . $directory); } if (file_exists($directory)) { |