summaryrefslogtreecommitdiff
path: root/src/Filesystem/CreateFile.php
diff options
context:
space:
mode:
authorPhil Burton <phil@d3r.com>2017-08-21 18:58:05 +0100
committerPhil Burton <phil@d3r.com>2017-08-21 18:58:05 +0100
commit31ac8bccdae86eeb150cb396c44ee88427120e3e (patch)
tree29526c559aab90170b036a1801a17785c2a9479c /src/Filesystem/CreateFile.php
parent0ed82a2c6ffd8e981d9dd388306379941ecb5720 (diff)
wip
Diffstat (limited to 'src/Filesystem/CreateFile.php')
-rw-r--r--src/Filesystem/CreateFile.php23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/Filesystem/CreateFile.php b/src/Filesystem/CreateFile.php
index f41d4b9..7fed65c 100644
--- a/src/Filesystem/CreateFile.php
+++ b/src/Filesystem/CreateFile.php
@@ -4,11 +4,27 @@ namespace App\Filesystem;
use App\Filesystem\Create;
+/**
+ * Class to create a new file
+ *
+ * @param string $filename [description]
+ * @author Phil Burton <phil@d3r.com>
+ */
class CreateFile extends Create
{
- protected $filename;
+ /**
+ * Thing we're creating
+ *
+ * @author Phil Burton <phil@d3r.com>
+ */
protected $thing = "file";
+ /**
+ * Check if the file already exists
+ *
+ * @param string $filename
+ * @author Phil Burton <phil@d3r.com>
+ */
public function __construct(string $filename)
{
parent::__construct($filename);
@@ -18,6 +34,11 @@ class CreateFile extends Create
}
}
+ /**
+ * Create the new file
+ *
+ * @author Phil Burton <phil@d3r.com>
+ */
public function excecute()
{
echo "execute";