feat(dashboard): add price dashboard with Zonneplan integration
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Features\Dashboard\Services;
|
||||
|
||||
use App\Features\Dashboard\Contracts\PriceRepository;
|
||||
|
||||
class DashboardService
|
||||
{
|
||||
public function __construct(
|
||||
public PriceRepository $repository
|
||||
) {}
|
||||
|
||||
public function getDashboardData(): array
|
||||
{
|
||||
return [
|
||||
'electricity' => $this->repository->retrieveElectricity(),
|
||||
'gas' => $this->repository->retrieveGas(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user