classParameterShape
final class ParameterShape
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
One declared parameter of a function or method.
Properties§
public string $namepublic TypeShape $typepublic Expr|null $default = nullpublic bool $variadic = falseMethods§
public function __construct(
public string $name,
public TypeShape $type,
public Expr|null $default = null,
public bool $variadic = false,
)Parameters
$name | string | The parameter name without its sigil |
$type | TypeShape | The declared type |
$default | Expr|null | The default value expression, when the parameter has one |
$variadic | bool | Whether the parameter collects the remaining arguments |
Test cases 24§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 2
Other tests reaching this symbol 22
CatalogCommandTestcallsCallEvaluatorTestcallsCalleeReturnsTest::testParametersBindsEachArgumentToThePositionItIsPassedIncallsCalleeReturnsTest::testParametersFallsBackToTheDefaultOfAParameterNotPassedcallsCalleeReturnsTest::testParametersLeavesAParameterNeitherPassedNorDefaultedOpencallsCalleeReturnsTest::testParametersLeavesAVariadicParameterOpenWhateverIsPassedcallsCallersTestcallsDeriverTestcallsEntryBinderTestcallsPropertyWritesTestcallsWriteEffectsTestcallsExpressionEvaluatorTestcallsInterpreterTestcallsReferenceEvaluatorTestcallsProgramIndexBuilderTestcallsProgramIndexTestcallsCallbackModelTestcallsCallModelTestcallsModelMetadataTestcallsAnalyzerTestcallsJsonReporterTestcallsTextReporterTestcalls