| 1 | <?php declare(strict_types=1); |
||
| 9 | class Template |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $source; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | private $destination; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $source |
||
| 23 | * @param string $destination |
||
| 24 | */ |
||
| 25 | public function __construct(string $source, string $destination) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getDestination(): string |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $destination |
||
| 41 | */ |
||
| 42 | public function setDestination(string $destination) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return string |
||
| 49 | * @throws TemplateNotValidException |
||
| 50 | */ |
||
| 51 | public function getContent(): string |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param string $contents |
||
| 62 | */ |
||
| 63 | public function setContents(string $contents) |
||
| 67 | } |
||
| 68 |