ok

Mini Shell

Direktori : /home2/selectio/www/3-idiots/vendor/facade/flare-client-php/src/Concerns/
Upload File :
Current File : /home2/selectio/www/3-idiots/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();
    }
}

Zerion Mini Shell 1.0