vendor/spomky-labs/otphp/src/InternalClock.php
raw| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace OTPHP; |
| 6 | |
| 7 | use DateTimeImmutable; |
| 8 | use Psr\Clock\ClockInterface; |
| 9 | |
| 10 | /** |
| 11 | * @readonly |
| 12 | * |
| 13 | * @internal |
| 14 | */ |
| 15 | final class InternalClock implements ClockInterface |
| 16 | { |
| 17 | public function now(): DateTimeImmutable |
| 18 | { |
| 19 | return new DateTimeImmutable(); |
| 20 | } |
| 21 | } |