Parameter
class Parameter
Properties
| string | $placeholder | ||
| string | $types |
Methods
__construct(string $name, bool $optional, bool $routeOptional, string|null $key, string|int|float|bool|null $default, ReflectionParameter|null $bound = null)
Create a new Parameter instance.
array
resolveTypes()
Resolve the TypeScript types for this parameter.
string
safeName()
Return the parameter name as a TypeScript-safe identifier.
string|null
keyName()
Return the binding key as a TypeScript object member.
string|null
keyAccessor()
Return the binding key as a TypeScript bracket accessor.
Details
at line 20
__construct(string $name, bool $optional, bool $routeOptional, string|null $key, string|int|float|bool|null $default, ReflectionParameter|null $bound = null)
Create a new Parameter instance.
at line 38
protected array
resolveTypes()
Resolve the TypeScript types for this parameter.
at line 58
string
safeName()
Return the parameter name as a TypeScript-safe identifier.
at line 66
string|null
keyName()
Return the binding key as a TypeScript object member.
at line 74
string|null
keyAccessor()
Return the binding key as a TypeScript bracket accessor.