1 | <?php |
||
21 | final class TemporaryScope extends Scope |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * @var \holyshared\peridot\temporary\TemporaryFactory |
||
26 | */ |
||
27 | private $factory; |
||
28 | |||
29 | /** |
||
30 | * @var \holyshared\peridot\temporary\TemporaryContainer |
||
31 | */ |
||
32 | private $container; |
||
33 | |||
34 | |||
35 | public function __construct() |
||
40 | |||
41 | /** |
||
42 | * Remove all temporary file and directory |
||
43 | */ |
||
44 | public function cleanUpTemporary() |
||
48 | |||
49 | /** |
||
50 | * Create a new temporary directory |
||
51 | * |
||
52 | * @param int $mode permission |
||
53 | * @return \holyshared\peridot\temporary\TemporaryDirectory |
||
54 | */ |
||
55 | public function makeDirectory($mode = FileSystemPermission::NORMAL) |
||
62 | |||
63 | /** |
||
64 | * Create a new temporary file |
||
65 | * |
||
66 | * @param int $mode permission |
||
67 | * @return \holyshared\peridot\temporary\TemporaryFile |
||
68 | */ |
||
69 | public function makeFile($mode = FileSystemPermission::NORMAL) |
||
76 | |||
77 | } |
||
78 |