Skip to content

PropertyDoc

One property, including a constructor-promoted one.

final class PropertyDoc

SourceIr/PropertyDoc.php
PropertyTypeDescription
$default?``stringreadonly.
$docDocBlockreadonly.
$namestringreadonly.
$promotedboolreadonly.
$readonlyboolreadonly.
$staticboolreadonly.
$typeTypeRefreadonly.
$visibilitystringreadonly.

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

ParameterTypeDescription
$namestring
$typeTypeRef
$docDocBlock
$visibility`‘public’““‘protected’`
$staticbool
$readonlybool
$promotedbool
$default?``string

Returns mixed