| 1 | <?php |
||
| 12 | class TempFilenameFactory |
||
| 13 | { |
||
| 14 | /** @var TempDirectory */ |
||
| 15 | private $tempDirectory; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * TempFilenameFactory constructor. |
||
| 19 | * @param TempDirectory $tempDirectory |
||
| 20 | */ |
||
| 21 | 43 | public function __construct(TempDirectory $tempDirectory) |
|
| 25 | |||
| 26 | 33 | public function getPathForLog(): string |
|
| 30 | |||
| 31 | 32 | public function getFilenameForLog(string $uniqueId): string |
|
| 35 | |||
| 36 | 2 | public function getFilenameForCoverage(string $uniqueId): string |
|
| 37 | { |
||
| 38 | 2 | return $this->getTempFilename('coverage', $uniqueId, 'php'); |
|
| 39 | } |
||
| 40 | |||
| 41 | 1 | public function getFilenameForConfiguration(): string |
|
| 45 | |||
| 46 | 34 | private function getTempFilename(string $subDir, string $filename, string $extension): string |
|
| 53 | |||
| 54 | 35 | private function getTempSubDir(string $subDir): string |
|
| 61 | } |
||
| 62 |