File "UsesTime.php"

Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/spatie/flare-client-php/src/Concerns/UsesTime.php
File size: 411 bytes
MIME-type: text/x-php
Charset: utf-8

<?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();
    }
}