$regions * @param array $categories * @param array $features */ public function __construct( private readonly array $settings, private readonly array $search, private readonly DateDemand $demand, private readonly QueryResultInterface $regions, private readonly array $categories, private readonly array $features ) { } public function getSettings(): array { return $this->settings; } public function getSearch(): array { return $this->search; } public function getDemand(): DateDemand { return $this->demand; } /** * @return QueryResultInterface */ public function getRegions(): QueryResultInterface { return $this->regions; } public function getCategories(): array { return $this->categories; } public function getFeatures(): array { return $this->features; } public function addVariable(string $key, mixed $value): void { $this->variables[$key] = $value; } public function getVariablesForView(): array { return [ 'search' => $this->search, 'demand' => $this->demand, 'regions' => $this->regions, 'categories' => $this->categories, 'features' => $this->features, ...$this->variables, ]; } }