<?php

namespace App\Services\StationSearch;

use Illuminate\Support\Collection;

final readonly class SearchResult
{
    /**
     * @param  Collection<int, mixed>  $stations  Sorted station rows with _updated_at/_reliability/_classification cached
     * @param  array{lowest: ?int, highest: ?int, avg: ?float}  $pricesSummary
     * @param  array{reliable: int, stale: int, outdated: int}  $reliabilityCounts
     * @param  array<string, mixed>  $prediction
     */
    public function __construct(
        public Collection $stations,
        public array $pricesSummary,
        public array $reliabilityCounts,
        public array $prediction,
    ) {}
}
