summaryrefslogtreecommitdiff
path: root/src/Filesystem/CreateFile.php
blob: f41d4b96b0a2bed52ff93006b997e4b36ed723f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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";
    }
}