Lines Matching refs:attributes
25 protected $attributes; variable in Twig\\Node\\Node
38 * @param array $attributes An array of attributes (should not be nodes)
42 public function __construct(array $nodes = [], array $attributes = [], $lineno = 0, $tag = null) argument
50 $this->attributes = $attributes;
57 $attributes = [];
58 foreach ($this->attributes as $name => $value) {
59 … $attributes[] = sprintf('%s: %s', $name, str_replace("\n", '', var_export($value, true)));
62 $repr = [\get_class($this).'('.implode(', ', $attributes)];
97 foreach ($this->attributes as $name => $value) {
150 return \array_key_exists($name, $this->attributes);
158 if (!\array_key_exists($name, $this->attributes)) {
162 return $this->attributes[$name];
171 $this->attributes[$name] = $value;
176 unset($this->attributes[$name]);