Current Path : /home/lentoinv/api.lentoria.com/vendor/spatie/flare-client-php/src/Concerns/ |
Current File : /home/lentoinv/api.lentoria.com/vendor/spatie/flare-client-php/src/Concerns/UsesTime.php |
<?php namespace Spatie\FlareClient\Concerns; use Spatie\FlareClient\Time\SystemTime; use Spatie\FlareClient\Time\Time; trait UsesTime { public static Time $time; public static function useTime(Time $time): void { self::$time = $time; } public function getCurrentTime(): int { $time = self::$time ?? new SystemTime(); return $time->getCurrentTime(); } }