| 1 | <?php |
||
| 12 | class TempFilenameFactory |
||
| 13 | { |
||
| 14 | /** @var TempDirectory */ |
||
| 15 | private $tempDirectory; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * TempFilenameFactory constructor. |
||
| 19 | * @param TempDirectory $tempDirectory |
||
| 20 | */ |
||
| 21 | 41 | public function __construct(TempDirectory $tempDirectory) |
|
| 25 | |||
| 26 | 31 | public function getPathForLog(): string |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $uniqueId |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | 30 | public function getFilenameForLog(string $uniqueId): string |
|
| 39 | |||
| 40 | 2 | public function getFilenameForCoverage(string $uniqueId): string |
|
| 44 | |||
| 45 | 1 | public function getFilenameForConfiguration(): string |
|
| 49 | |||
| 50 | 32 | private function getTempFilename(string $subDir, string $filename, string $extension): string |
|
| 57 | |||
| 58 | 33 | private function getTempSubDir(string $subDir): string |
|
| 65 | } |
||
| 66 |