blob: a1891db0543dac5595c4ef2b861d17a48b5f06b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<?php
namespace App\Filesystem;
abstract class Create
{
protected $filename;
protected $thing;
public function __construct(string $filename)
{
$this->filename = $filename;
if (!is_writable(dirname($filename))) {
throw new \Exception('Cannot create ' . $this->thing . ' at: ' . $filename);
}
}
abstract public function excecute();
}
|