| 1 | <?php declare(strict_types=1); |
||
| 13 | class Template |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $source; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $destination; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | private $workingDir; |
||
| 29 | |||
| 30 | public function __construct(string $source, string $destination, string $workingDir) |
||
| 36 | |||
| 37 | public function getDestination(): string |
||
| 41 | |||
| 42 | public function setDestination(string $destination): void |
||
| 46 | |||
| 47 | public function getWorkingDir(): string |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @throws TemplateNotValid |
||
| 54 | */ |
||
| 55 | public function getContent(): string |
||
| 63 | |||
| 64 | public function setContents(string $contents): void |
||
| 72 | } |
||
| 73 |