summaryrefslogtreecommitdiff
path: root/src/Filesystem/CreateFile.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Filesystem/CreateFile.php')
-rw-r--r--src/Filesystem/CreateFile.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Filesystem/CreateFile.php b/src/Filesystem/CreateFile.php
new file mode 100644
index 0000000..f41d4b9
--- /dev/null
+++ b/src/Filesystem/CreateFile.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace App\Filesystem;
+
+use App\Filesystem\Create;
+
+class CreateFile extends Create
+{
+ protected $filename;
+ protected $thing = "file";
+
+ public function __construct(string $filename)
+ {
+ parent::__construct($filename);
+
+ if (file_exists($filename)) {
+ throw new \Exception('File already exists at: ' . $filename);
+ }
+ }
+
+ public function excecute()
+ {
+ echo "execute";
+ }
+}