| 1 | <?php |
||
| 6 | final class Template |
||
| 7 | { |
||
| 8 | public $name; |
||
| 9 | public $data; |
||
| 10 | public $context; |
||
| 11 | |||
| 12 | public function __construct( |
||
| 21 | |||
| 22 | public function addData(array $data) { |
||
| 35 | |||
| 36 | public function resolveName(callable $resolve_name) { |
||
| 39 | |||
| 40 | public function resolveData(callable $resolve_data) { |
||
| 43 | |||
| 44 | /** Create a new template based off of this current one */ |
||
| 45 | public function fork($name, array $data = [], array $context = []) { |
||
| 52 | } |
||
| 53 |