Lines Matching refs:name
12 public string $name; variable in PhpParser\\Node\\Name
24 * @param string|string[]|self $name Name as string, part array or Name instance (copy ctor)
27 final public function __construct($name, array $attributes = []) { argument
29 $this->name = self::prepareName($name);
43 return \explode('\\', $this->name);
52 if (false !== $pos = \strpos($this->name, '\\')) {
53 return \substr($this->name, 0, $pos);
55 return $this->name;
64 if (false !== $pos = \strrpos($this->name, '\\')) {
65 return \substr($this->name, $pos + 1);
67 return $this->name;
76 return false === \strpos($this->name, '\\');
85 return false !== \strpos($this->name, '\\');
114 return $this->name;
136 return strtolower($this->name);
145 return isset(self::$specialClassNames[strtolower($this->name)]);
156 return $this->name;
178 if (false !== $pos = \strpos($this->name, '\\')) {
179 return new static(\substr($this->name, $pos + 1));
184 $parts = \explode('\\', $this->name);
246 * @param string|string[]|self $name Name to prepare
251 private static function prepareName($name): string { argument
252 if (\is_string($name)) {
253 if ('' === $name) {
257 return $name;
259 if (\is_array($name)) {
260 if (empty($name)) {
264 return implode('\\', $name);
266 if ($name instanceof self) {
267 return $name->name;