public function __construct($names, $values, $tabNames, $tabValues, $lineno, $tag = null) { $nodes['values'] = $values; $i = 0; foreach ($tabValues as $tabValue) { $nodes['tab_values_' . $i++] = new Twig_Node($tabValue); } parent::__construct($nodes, array('names' => $names, 'tab_names' => $tabNames), $lineno, $tag); }
public function __construct($names, $values, $lineno, $tag = null) { parent::__construct(array('values' => $values), array('names' => $names), $lineno, $tag); }