no-framework-tutorial/implementation/15-adding-content/src/Service/Time/SystemClockNow.php

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;
}
}