diff --git a/composer.json b/composer.json index 366676b5..f34dbfd6 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,8 @@ } ], "require": { - "php": "^8.0" + "php": "^8.0", + "stella-maris/clock": "^0.1.4" }, "require-dev": { "infection/infection": "^0.26", diff --git a/composer.lock b/composer.lock index 3095aeb0..825be775 100644 --- a/composer.lock +++ b/composer.lock @@ -4,8 +4,56 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6aa2eb0a0ac8287ee0069d7bd7051654", - "packages": [], + "content-hash": "af17ecc7a44ca3cbe4c0e08e7842b997", + "packages": [ + { + "name": "stella-maris/clock", + "version": "0.1.4", + "source": { + "type": "git", + "url": "https://gitlab.com/stella-maris/clock.git", + "reference": "8a0a967896df4c63417385dc69328a0aec84d9cf" + }, + "dist": { + "type": "zip", + "url": "https://gitlab.com/api/v4/projects/stella-maris%2Fclock/repository/archive.zip?sha=8a0a967896df4c63417385dc69328a0aec84d9cf", + "reference": "8a0a967896df4c63417385dc69328a0aec84d9cf", + "shasum": "" + }, + "require": { + "php": "^7.0|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "StellaMaris\\Clock\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andreas Heigl", + "role": "Maintainer" + } + ], + "description": "A pre-release of the proposed PSR-20 Clock-Interface", + "homepage": "https://gitlab.com/stella-maris/clock", + "keywords": [ + "clock", + "datetime", + "point in time", + "psr20" + ], + "support": { + "issues": "https://gitlab.com/stella-maris/clock/-/issues", + "source": "https://gitlab.com/stella-maris/clock/-/tree/0.1.4" + }, + "time": "2022-04-17T14:12:26+00:00" + } + ], "packages-dev": [ { "name": "composer/pcre", diff --git a/src/Clock.php b/src/Clock.php index f356776e..529a3c36 100644 --- a/src/Clock.php +++ b/src/Clock.php @@ -4,8 +4,9 @@ namespace Lcobucci\Clock; use DateTimeImmutable; +use StellaMaris\Clock\ClockInterface; -interface Clock +interface Clock extends ClockInterface { public function now(): DateTimeImmutable; }