| 1 | <?php |
||
| 17 | class ArrayTemplate implements TemplateInterface |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $default = ''; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var string |
||
| 26 | */ |
||
| 27 | protected $negated = ''; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var array |
||
| 31 | */ |
||
| 32 | protected $vars = []; |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @param array $templates |
||
| 36 | */ |
||
| 37 | public function __construct(array $templates) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * {@inheritdoc} |
||
| 50 | * |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getDefaultTemplate() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | * |
||
| 61 | * @param string $default |
||
| 62 | */ |
||
| 63 | public function setDefaultTemplate($default) |
||
| 68 | |||
| 69 | /** |
||
| 70 | * {@inheritdoc} |
||
| 71 | * |
||
| 72 | * @return string |
||
| 73 | */ |
||
| 74 | public function getNegatedTemplate() |
||
| 78 | |||
| 79 | /** |
||
| 80 | * {@inheritdoc} |
||
| 81 | * |
||
| 82 | * @param string $negated |
||
| 83 | */ |
||
| 84 | public function setNegatedTemplate($negated) |
||
| 89 | |||
| 90 | /** |
||
| 91 | * {@inheritdoc} |
||
| 92 | * |
||
| 93 | * @return array |
||
| 94 | */ |
||
| 95 | public function getTemplateVars() |
||
| 99 | |||
| 100 | /** |
||
| 101 | * {@inheritdoc} |
||
| 102 | * |
||
| 103 | * @param array $vars |
||
| 104 | * @return $this |
||
| 105 | */ |
||
| 106 | public function setTemplateVars(array $vars) |
||
| 111 | } |
||
| 112 |