Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class TemporaryFile |
||
23 | { |
||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected static string $tempDir = ''; |
||
28 | |||
29 | /** |
||
30 | * @param string $tempDir |
||
31 | * @return void |
||
32 | */ |
||
33 | 1 | public static function setTempFolder(string $tempDir): void |
|
34 | { |
||
35 | 1 | static::$tempDir = $tempDir; |
|
36 | 1 | } |
|
37 | |||
38 | /** |
||
39 | * @return string |
||
40 | */ |
||
41 | 1 | public static function tempDir(): string |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | 1 | public static function create(): string |
|
56 | } |
||
57 | } |
||
58 |