<?php

declare(strict_types=1);

namespace Plugin\tnt_stabila_shop\src\Services;

use JTL\Cache\JTLCacheInterface;
use JTL\Shop;
use Plugin\tnt_stabila_shop\src\Helper\Formatter;
use Plugin\tnt_stabila_shop\src\Helper\MathHelper;
use Plugin\tnt_stabila_shop\src\Repositories\DatabaseRepository;
use Plugin\tnt_stabila_shop\src\Repositories\SessionRepository;

class DashboardService
{
    use Formatter;

    public function __construct(
        protected DatabaseRepository $database,
        protected SessionRepository $session,
        protected JTLCacheInterface|null $cache = null
    ) {
        $this->cache = $cache ?? Shop::Container()->getCache();
    }
}
