ParamDoc
One parameter of a method, with the type actually rendered and its prose.
Synopsis
Section titled “Synopsis”final class ParamDoc
| Source | Ir/ParamDoc.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$byReference | bool | readonly. |
$default | ?``string | readonly. |
$description | string | readonly. |
$name | string | readonly. |
$promoted | bool | readonly. |
$type | TypeRef | readonly. |
$variadic | bool | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $name, TypeRef $type, bool $byReference = false, bool $variadic = false, bool $promoted = false, ?string $default = null, string $description = ''): mixed
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$type | TypeRef | |
$byReference | bool | |
$variadic | bool | |
$promoted | bool | |
$default | ?``string | |
$description | string |
Returns mixed
Methods
Section titled “Methods”| Method | Description |
|---|---|
signature(): string | The parameter as it appears in a signature, defaults and all. |
signature()
Section titled “signature()”public function signature(): string
The parameter as it appears in a signature, defaults and all.
Returns string