new Response(description: 'Array of regions with their total collected tax amount'), '400' => new Response(description: 'Invalid or missing parameters (tax_type is required)'), ], ), provider: RegionDistributionProvider::class, ), ], )] #[QueryParameter(key: 'tax_type', description: 'Tax type to analyze', schema: ['type' => 'string', 'enum' => ['tfpnb', 'tfpb', 'th', 'cfe']], required: true)] #[QueryParameter(key: 'year', description: 'Year of tax data (2019-2022)', schema: ['type' => 'integer'])] class RegionDistribution { public function __construct( public readonly string $tax_type = '', public readonly ?int $year = null, public readonly array $data = [], ) {} }