1 | <?php declare(strict_types=1); |
||
9 | class TemplateEngine |
||
10 | { |
||
11 | const REGEX = '/__[A-Z0-9,_,-]+?__(?!\(sic\!\))/'; |
||
12 | |||
13 | const REGEX_SIC = '/__[A-Z0-9,_,-]+?__(\(sic\!\))/'; |
||
14 | |||
15 | /** |
||
16 | * @param string $shellCommand |
||
17 | * @param ValueProvider[] $allValues |
||
18 | * @return string |
||
19 | */ |
||
20 | public function render(string $shellCommand, array $allValues): string |
||
38 | |||
39 | /** |
||
40 | * @param string $placeholder |
||
41 | * @param array $allValues |
||
42 | * @return mixed |
||
43 | * @throws \RuntimeException |
||
44 | */ |
||
45 | private function getValue(string $placeholder, array $allValues) |
||
57 | } |
||
58 |