This commit is contained in:
2024-01-18 13:17:23 -03:00
parent 1f076bc2f1
commit 72f63c5e6c

View File

@ -5,12 +5,11 @@ use DateTimeInterface;
use DateTimeImmutable; use DateTimeImmutable;
use DateInterval; use DateInterval;
use Incoviba\Common\Implement\Exception\EmptyRedis; use Incoviba\Common\Implement\Exception\EmptyRedis;
use Psr\Log\LoggerInterface;
class IPC class IPC
{ {
protected string $redisKey = 'ipc'; protected string $redisKey = 'ipc';
public function __construct(protected Redis $redisService, protected Money $moneyService, protected LoggerInterface $logger) {} public function __construct(protected Redis $redisService, protected Money $moneyService) {}
public function get(DateTimeInterface $from, DateTimeInterface $to = new DateTimeImmutable()): float public function get(DateTimeInterface $from, DateTimeInterface $to = new DateTimeImmutable()): float
{ {