$this->client->getElectricityPrices()->toArray()); return ElectricityData::collect($data, Collection::class); } #[Override] public function retrieveGas(): Collection { $data = Cache::remember('gas:upcomming', 3600, fn () => $this->client->getGasPrices()->toArray()); return GasData::collect($data, Collection::class); } #[Override] public function retrieveElectricityForDate(Carbon $date): Collection { $data = Cache::remember('electricity:'.$date->format('Y-m-d'), 3600, fn () => $this->client->getElectricityPricesForDate($date)->toArray()); return GasData::collect($data, Collection::class); } #[Override] public function retrieveGasForDate(Carbon $date): Collection { $data = Cache::remember('gas:'.$date->format('Y-m-d'), 3600, fn () => $this->client->getGasPricesForDate($date)->toArray()); return GasData::collect($data, Collection::class); } }