Back | Home
الـ Path الحالي: /home/picotech/domains/instantly.picotech.app/public_html/vendor/iyzico/../nikic/../dflydev/../ramsey/../maennchen/../theseer/../monolog/../hamcrest/../psr/../spatie/flare-client-php/.././flare-client-php/./src/Concerns
الملفات الموجودة في هذا الـ Path:
.
..
HasContext.php
UsesTime.php
مشاهدة ملف: 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();
}
}