PropertyDoc
One property, including a constructor-promoted one.
Synopsis
Section titled “Synopsis”final class PropertyDoc
| Source | Ir/PropertyDoc.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$default | ?``string | readonly. |
$doc | DocBlock | readonly. |
$name | string | readonly. |
$promoted | bool | readonly. |
$readonly | bool | readonly. |
$static | bool | readonly. |
$type | TypeRef | readonly. |
$visibility | string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $name, TypeRef $type, DocBlock $doc, 'public'|'protected' $visibility = 'public', bool $static = false, bool $readonly = false, bool $promoted = false, ?string $default = null): mixed
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$type | TypeRef | |
$doc | DocBlock | |
$visibility | `‘public’“ | “‘protected’` |
$static | bool | |
$readonly | bool | |
$promoted | bool | |
$default | ?``string |
Returns mixed