Lines Matching refs:name
29 private $name; variable in Twig\\Node\\Node
44 foreach ($nodes as $name => $node) {
46 …($node) ? \get_class($node) : null === $node ? 'null' : \gettype($node), $name, \get_class($this))…
58 foreach ($this->attributes as $name => $value) {
59 … $attributes[] = sprintf('%s: %s', $name, str_replace("\n", '', var_export($value, true)));
65 foreach ($this->nodes as $name => $node) {
66 $len = \strlen($name) + 4;
72 $repr[] = sprintf(' %s: %s', $name, ltrim(implode("\n", $noderepr)));
97 foreach ($this->attributes as $name => $value) {
99 $attribute->setAttribute('name', $name);
103 foreach ($this->nodes as $name => $n) {
110 $child->setAttribute('name', $name);
148 public function hasAttribute($name) argument
150 return \array_key_exists($name, $this->attributes);
156 public function getAttribute($name) argument
158 if (!\array_key_exists($name, $this->attributes)) {
159 …throw new \LogicException(sprintf('Attribute "%s" does not exist for Node "%s".', $name, \get_clas…
162 return $this->attributes[$name];
166 * @param string $name
169 public function setAttribute($name, $value) argument
171 $this->attributes[$name] = $value;
174 public function removeAttribute($name) argument
176 unset($this->attributes[$name]);
182 public function hasNode($name) argument
184 return \array_key_exists($name, $this->nodes);
190 public function getNode($name) argument
192 if (!\array_key_exists($name, $this->nodes)) {
193 …throw new \LogicException(sprintf('Node "%s" does not exist for Node "%s".', $name, \get_class($th…
196 return $this->nodes[$name];
199 public function setNode($name, $node = null) argument
202 …($node) ? \get_class($node) : null === $node ? 'null' : \gettype($node), $name, \get_class($this))…
205 $this->nodes[$name] = $node;
208 public function removeNode($name) argument
210 unset($this->nodes[$name]);
223 public function setTemplateName($name) argument
225 $this->name = $name;
228 $node->setTemplateName($name);
235 return $this->name;
241 public function setFilename($name) argument
245 $this->setTemplateName($name);
255 return $this->name;