Lines Matching refs:name
17 * @param string|Name $name Name of the attribute
20 public function attribute($name, array $args = []): Node\Attribute { argument
22 BuilderHelpers::normalizeName($name),
34 public function namespace($name): Builder\Namespace_ { argument
35 return new Builder\Namespace_($name);
41 * @param string $name Name of the class
45 public function class(string $name): Builder\Class_ { argument
46 return new Builder\Class_($name);
52 * @param string $name Name of the interface
56 public function interface(string $name): Builder\Interface_ { argument
57 return new Builder\Interface_($name);
63 * @param string $name Name of the trait
67 public function trait(string $name): Builder\Trait_ { argument
68 return new Builder\Trait_($name);
74 * @param string $name Name of the enum
78 public function enum(string $name): Builder\Enum_ { argument
79 return new Builder\Enum_($name);
113 * @param string $name Name of the method
117 public function method(string $name): Builder\Method { argument
118 return new Builder\Method($name);
124 * @param string $name Name of the parameter
128 public function param(string $name): Builder\Param { argument
129 return new Builder\Param($name);
135 * @param string $name Name of the property
139 public function property(string $name): Builder\Property { argument
140 return new Builder\Property($name);
146 * @param string $name Name of the function
150 public function function(string $name): Builder\Function_ { argument
151 return new Builder\Function_($name);
161 public function use($name): Builder\Use_ { argument
162 return new Builder\Use_($name, Use_::TYPE_NORMAL);
172 public function useFunction($name): Builder\Use_ { argument
173 return new Builder\Use_($name, Use_::TYPE_FUNCTION);
183 public function useConst($name): Builder\Use_ { argument
184 return new Builder\Use_($name, Use_::TYPE_CONSTANT);
190 * @param string|Identifier $name Name
195 public function classConst($name, $value): Builder\ClassConst { argument
196 return new Builder\ClassConst($name, $value);
202 * @param string|Identifier $name Name
206 public function enumCase($name): Builder\EnumCase { argument
207 return new Builder\EnumCase($name);
222 * @param string|Expr $name Name
224 public function var($name): Expr\Variable { argument
225 if (!\is_string($name) && !$name instanceof Expr) {
229 return new Expr\Variable($name);
248 $arg->name = BuilderHelpers::normalizeIdentifier($key);
258 * @param string|Name|Expr $name Function name
261 public function funcCall($name, array $args = []): Expr\FuncCall { argument
263 BuilderHelpers::normalizeNameOrExpr($name),
272 * @param string|Identifier|Expr $name Method name
275 public function methodCall(Expr $var, $name, array $args = []): Expr\MethodCall { argument
278 BuilderHelpers::normalizeIdentifierOrExpr($name),
287 * @param string|Identifier|Expr $name Method name
290 public function staticCall($class, $name, array $args = []): Expr\StaticCall { argument
293 BuilderHelpers::normalizeIdentifierOrExpr($name),
314 * @param string|Name $name Constant name
316 public function constFetch($name): Expr\ConstFetch { argument
317 return new Expr\ConstFetch(BuilderHelpers::normalizeName($name));
324 * @param string|Identifier|Expr $name Property name
326 public function propertyFetch(Expr $var, $name): Expr\PropertyFetch { argument
327 return new Expr\PropertyFetch($var, BuilderHelpers::normalizeIdentifierOrExpr($name));
334 * @param string|Identifier|Expr $name Constant name
336 public function classConstFetch($class, $name): Expr\ClassConstFetch { argument
339 BuilderHelpers::normalizeIdentifierOrExpr($name)