add chapter 12 solutions
This commit is contained in:
parent
523f9949ea
commit
af1807c67f
23 changed files with 1998 additions and 0 deletions
13
implementation/12/src/Service/Time/SystemClock.php
Normal file
13
implementation/12/src/Service/Time/SystemClock.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php declare(strict_types=1);
|
||||
|
||||
namespace Lubian\NoFramework\Service\Time;
|
||||
|
||||
use DateTimeImmutable;
|
||||
|
||||
final class SystemClock implements Clock
|
||||
{
|
||||
public function now(): DateTimeImmutable
|
||||
{
|
||||
return new DateTimeImmutable;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue