Lines Matching refs:attributes
7 protected array $attributes; variable in PhpParser\\NodeAbstract
14 public function __construct(array $attributes = []) { argument
15 $this->attributes = $attributes;
25 return $this->attributes['startLine'] ?? -1;
37 return $this->attributes['startLine'] ?? -1;
49 return $this->attributes['endLine'] ?? -1;
62 return $this->attributes['startTokenPos'] ?? -1;
75 return $this->attributes['endTokenPos'] ?? -1;
86 return $this->attributes['startFilePos'] ?? -1;
97 return $this->attributes['endFilePos'] ?? -1;
108 return $this->attributes['comments'] ?? [];
152 $this->attributes[$key] = $value;
156 return array_key_exists($key, $this->attributes);
160 if (array_key_exists($key, $this->attributes)) {
161 return $this->attributes[$key];
168 return $this->attributes;
171 public function setAttributes(array $attributes): void { argument
172 $this->attributes = $attributes;