| 1 | <?php declare(strict_types=1); |
||
| 8 | final class CommandExecutionContext |
||
| 9 | { |
||
| 10 | /** @var Theme */ |
||
| 11 | private $theme; |
||
| 12 | |||
| 13 | /** @var string */ |
||
| 14 | private $workingDir = ''; |
||
| 15 | |||
| 16 | 1 | public function __construct(Theme $theme, string $workingDirectory) |
|
| 21 | |||
| 22 | public function getTheme(): Theme |
||
| 26 | |||
| 27 | 7 | public function getWorkingDirectory(): string |
|
| 31 | |||
| 32 | 21 | public function hasFileInWorkingDirectory(string $file): bool |
|
| 36 | |||
| 37 | 8 | public function getPathOfFileInWorkingDirectory(string $file): string |
|
| 41 | |||
| 42 | 14 | public function getContentsOfFileInWorkingDirectory(string $file): string |
|
| 51 | |||
| 52 | 5 | public function ensureTempDirectory(): string |
|
| 61 | } |
||
| 62 |