Lines Matching refs:name

30     private $name;  variable in Twig\\Node\\Node
41 foreach ($nodes as $name => $node) {
43 …t($node) ? \get_class($node) : (null === $node ? 'null' : \gettype($node)), $name, static::class));
55 foreach ($this->attributes as $name => $value) {
56 … $attributes[] = sprintf('%s: %s', $name, str_replace("\n", '', var_export($value, true)));
62 foreach ($this->nodes as $name => $node) {
63 $len = \strlen($name) + 4;
69 $repr[] = sprintf(' %s: %s', $name, ltrim(implode("\n", $noderepr)));
100 public function hasAttribute($name) argument
102 return \array_key_exists($name, $this->attributes);
108 public function getAttribute($name) argument
110 if (!\array_key_exists($name, $this->attributes)) {
111 …throw new \LogicException(sprintf('Attribute "%s" does not exist for Node "%s".', $name, static::c…
114 return $this->attributes[$name];
118 * @param string $name
121 public function setAttribute($name, $value) argument
123 $this->attributes[$name] = $value;
126 public function removeAttribute($name) argument
128 unset($this->attributes[$name]);
134 public function hasNode($name) argument
136 return isset($this->nodes[$name]);
142 public function getNode($name) argument
144 if (!isset($this->nodes[$name])) {
145 …throw new \LogicException(sprintf('Node "%s" does not exist for Node "%s".', $name, static::class)…
148 return $this->nodes[$name];
151 public function setNode($name, self $node) argument
153 $this->nodes[$name] = $node;
156 public function removeNode($name) argument
158 unset($this->nodes[$name]);
182 public function setTemplateName($name/*, $triggerDeprecation = true */) argument
189 $this->name = $name;
191 $node->setTemplateName($name, $triggerDeprecation);