Methods |
public
|
__construct(string $name, ?string $type = null, ?string $default = null, bool $isVariadic = false)
Creates a new MethodParam object
Creates a new MethodParam object
|
#
|
public
|
getName(): string
Get the name of the parameter
Get the name of the parameter
|
#
|
public
|
getType(): ?string
Get the PHPDoc type of the parameter
Get the PHPDoc type of the parameter
|
#
|
public
|
getDefault(): ?string
Get the default value of the parameter
Get the default value of the parameter
|
#
|
public
|
isVariadic(): bool
Check if the parameter is variadic
Check if the parameter is variadic
|
#
|
public
|
withType(?string $type): static
Get an instance with the given PHPDoc type
Get an instance with the given PHPDoc type
|
#
|
public
|
__toString(): string
|
#
|