| 1 | <?php |
||
| 18 | class ArrayTemplate implements TemplateInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $default = ''; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $negated = ''; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $vars = []; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param array $templates |
||
| 37 | */ |
||
| 38 | public function __construct(array $templates) |
||
| 48 | |||
| 49 | /** |
||
| 50 | * {@inheritdoc} |
||
| 51 | * |
||
| 52 | * @return string |
||
| 53 | */ |
||
| 54 | public function getDefaultTemplate() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | * |
||
| 62 | * @param string $default |
||
| 63 | */ |
||
| 64 | public function setDefaultTemplate($default) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * {@inheritdoc} |
||
| 73 | * |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | public function getNegatedTemplate() |
||
| 80 | |||
| 81 | /** |
||
| 82 | * {@inheritdoc} |
||
| 83 | * |
||
| 84 | * @param string $negated |
||
| 85 | */ |
||
| 86 | public function setNegatedTemplate($negated) |
||
| 92 | |||
| 93 | /** |
||
| 94 | * {@inheritdoc} |
||
| 95 | * |
||
| 96 | * @return array |
||
| 97 | */ |
||
| 98 | public function getTemplateVars() |
||
| 102 | |||
| 103 | /** |
||
| 104 | * {@inheritdoc} |
||
| 105 | * |
||
| 106 | * @param array $vars |
||
| 107 | * @return $this |
||
| 108 | */ |
||
| 109 | public function setTemplateVars(array $vars) |
||
| 115 | } |
||
| 116 |