Nexus API Reference

ParamMetadata
in package

Read onlyYes
FinalYes
Tags
psalm-api

Compile-time description of a single resolved parameter. Produced by a ParamResolver::compile() call; consumed at request time by the SAME resolver via its back-ref ($metadata->resolver).

Polymorphic dispatch — the framework never inspects $payload; only the producing resolver does.

needsScope is the framework-level signal: HandlerMetadata aggregates this across all params on a handler to decide whether to allocate a PerRequestActorScope per request.

Table of Contents

Properties

$name  : string
$needsScope  : bool
$payload  : array<string|int, mixed>
$resolver  : ParamResolver
$type  : string|null

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct(ParamResolver $resolver, string $name, string|null $type[, array<string, mixed> $payload = [] ][, bool $needsScope = false ]) : mixed
Parameters
$resolver : ParamResolver
$name : string
$type : string|null
$payload : array<string, mixed> = []
$needsScope : bool = false

        
On this page

Search results