| 1 | <?php |
||
| 12 | class Cleaner |
||
| 13 | { |
||
| 14 | /** @var Paraunit */ |
||
| 15 | private $configuration; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Cleaner constructor. |
||
| 19 | * @param Paraunit $configuration |
||
| 20 | */ |
||
| 21 | 8 | public function __construct(Paraunit $configuration) |
|
| 25 | |||
| 26 | 8 | public function purgeCurrentTempDir() |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $dir |
||
| 33 | * @return bool True if the directory existed and it has been deleted |
||
| 34 | */ |
||
| 35 | 27 | public static function cleanUpDir($dir) |
|
| 54 | } |
||
| 55 |