aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/spomky-labs/otphp/src/InternalClock.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/spomky-labs/otphp/src/InternalClock.php')
-rw-r--r--vendor/spomky-labs/otphp/src/InternalClock.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/spomky-labs/otphp/src/InternalClock.php b/vendor/spomky-labs/otphp/src/InternalClock.php
new file mode 100644
index 000000000..8be469318
--- /dev/null
+++ b/vendor/spomky-labs/otphp/src/InternalClock.php
@@ -0,0 +1,19 @@
+<?php
+
+declare(strict_types=1);
+
+namespace OTPHP;
+
+use DateTimeImmutable;
+use Psr\Clock\ClockInterface;
+
+/**
+ * @internal
+ */
+final class InternalClock implements ClockInterface
+{
+ public function now(): DateTimeImmutable
+ {
+ return new DateTimeImmutable();
+ }
+}