Lines Matching refs:variables
31 private $variables = []; variable in App\\Template\\Engine
58 public function assign(array $variables = []): void argument
60 $this->variables = array_replace($this->variables, $variables);
68 return $this->variables;
91 public function render(string $template, array $variables = []): string argument
93 $variables = array_replace($this->variables, $variables);
97 $variables,
101 $buffer = $this->bufferize($template, $variables);
116 private function bufferize(string $template, array $variables = []): string argument
123 function ($template, $variables) {
125 $this->variables = array_replace($this->variables, $variables);
126 unset($variables, $template);
128 if (count($this->variables) > extract($this->variables, EXTR_SKIP)) {
159 return $closure($template, $variables);