| 1 | <?php |
||
| 9 | class Cleaner |
||
| 10 | { |
||
| 11 | /** @var TempDirectory */ |
||
| 12 | private $tempDirectory; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Cleaner constructor. |
||
| 16 | * @param TempDirectory $tempDirectory |
||
| 17 | */ |
||
| 18 | 8 | public function __construct(TempDirectory $tempDirectory) |
|
| 22 | |||
| 23 | 8 | public function purgeCurrentTempDir() |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $dir |
||
| 30 | * @return bool True if the directory existed and it has been deleted |
||
| 31 | */ |
||
| 32 | 27 | public static function cleanUpDir($dir) |
|
| 51 | } |
||
| 52 |