Skip to content

RequestDtoDefinition

Format-independent description of a #[MapRequest] DTO class: its constructor-promoted properties, in declaration order.

Produced once per class by RequestDtoScanner::scan() and cached by RequestDtoRegistry.

final class RequestDtoDefinition

Since1.0.0
SourceRequest/Compiler/RequestDtoDefinition.php
PropertyTypeDescription
$classNamestringreadonly.
$propertiesarrayreadonly.

public function __construct(string $className, array<int, RequestDtoProperty> $properties): mixed

ParameterTypeDescription
$classNamestring
$propertiesarray``<``int``, RequestDtoProperty>

Returns mixed