new Response(description: 'Array of years with their average tax rate'), '400' => new Response(description: 'Invalid or missing parameters (region and tax_type are required)'), ], ), provider: TaxTimeSeriesProvider::class, ), ], )] #[QueryParameter(key: 'region', description: 'French region name (e.g. Normandie, Île-de-France)', schema: ['type' => 'string'], required: true)] #[QueryParameter(key: 'tax_type', description: 'Tax type to analyze', schema: ['type' => 'string', 'enum' => ['tfpnb', 'tfpb', 'th', 'cfe']], required: true)] #[QueryParameter(key: 'start_year', description: 'Start year for the range (default: earliest available)', schema: ['type' => 'integer'])] #[QueryParameter(key: 'end_year', description: 'End year for the range (default: latest available)', schema: ['type' => 'integer'])] class TaxTimeSeries { public function __construct( public readonly string $region = '', public readonly string $tax_type = '', public readonly ?int $start_year = null, public readonly ?int $end_year = null, public readonly array $data = [], ) {} }