no-framework-tutorial/implementation/18-caching/src/Service/Time/SystemClockNow.php
2022-05-31 18:50:35 +02:00

13 lines
246 B
PHP

<?php declare(strict_types=1);
namespace Lubian\NoFramework\Service\Time;
use DateTimeImmutable;
final class SystemClockNow implements Now
{
public function __invoke(): DateTimeImmutable
{
return new DateTimeImmutable;
}
}