| Total Complexity | 2 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class ChainWorkDirManager |
||
| 12 | { |
||
| 13 | /** @var string */ |
||
| 14 | protected $baseDir; |
||
| 15 | |||
| 16 | /** @var Filesystem */ |
||
| 17 | protected $fileSystem; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * ChainWorkDirManager constructor. |
||
| 21 | * @param string $directory |
||
| 22 | */ |
||
| 23 | public function __construct(string $baseDir, Filesystem $filesystem) |
||
| 24 | { |
||
| 25 | $this->baseDir = $baseDir; |
||
| 26 | $this->fileSystem = $filesystem; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param EtlExecution $execution |
||
| 31 | * @return string |
||
| 32 | * |
||
| 33 | * @throws IOException if directory can't be created. |
||
| 34 | */ |
||
| 35 | public function getWorkDir(EtlExecution $execution): string |
||
| 41 | } |
||
| 42 | } |