Skip to content

ParamDoc

One parameter of a method, with the type actually rendered and its prose.

final class ParamDoc

SourceIr/ParamDoc.php
PropertyTypeDescription
$byReferenceboolreadonly.
$default?``stringreadonly.
$descriptionstringreadonly.
$namestringreadonly.
$promotedboolreadonly.
$typeTypeRefreadonly.
$variadicboolreadonly.

public function __construct(string $name, TypeRef $type, bool $byReference = false, bool $variadic = false, bool $promoted = false, ?string $default = null, string $description = ''): mixed

ParameterTypeDescription
$namestring
$typeTypeRef
$byReferencebool
$variadicbool
$promotedbool
$default?``string
$descriptionstring

Returns mixed

MethodDescription
signature(): stringThe parameter as it appears in a signature, defaults and all.

public function signature(): string

The parameter as it appears in a signature, defaults and all.

Returns string