ok
Direktori : /home2/selectio/www/innerstore/vendor/facade/flare-client-php/src/Concerns/ |
Current File : /home2/selectio/www/innerstore/vendor/facade/flare-client-php/src/Concerns/UsesTime.php |
<?php namespace Facade\FlareClient\Concerns; use Facade\FlareClient\Time\SystemTime; use Facade\FlareClient\Time\Time; trait UsesTime { /** @var \Facade\FlareClient\Time\Time */ public static $time; public static function useTime(Time $time) { self::$time = $time; } public function getCurrentTime(): int { $time = self::$time ?? new SystemTime(); return $time->getCurrentTime(); } }