Slide 22
Slide 22 text
Back to
parameter
definition
abstract class Parameter
{
public function __construct(
protected ?string $key = null,
protected ?array $schema = null,
protected OpenApiParameter|array|false|null $openApi =
null,
protected mixed $provider = null,
/** @param FilterInterface|string $filter */
protected mixed $filter = null,
protected ?string $property = null,
protected ?string $description = null,
protected ?bool $required = null,
protected mixed $constraints = null,
protected string|\Stringable|null $security = null,
protected ?array $extraProperties = [],
...
) {}
}
Focus on the shape of
your API parameter!