blob: 0c45c6c383a1ac4206c6dd143c02d830834f73dd (
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 CreateDirectory extends Create
{
protected $filename;
protected $thing = "directory";
public function __construct(string $filename)
{
parent::__construct($filename);
if (file_exists($filename)) {
throw new \Exception('Directory already exists at: ' . $filename);
}
}
public function excecute()
{
echo "execute";
}
}
|