<?php

namespace App\Libraries;

class AdminApiAuthContext
{
    private static ?object $user = null;
    private static ?object $token = null;

    public static function set(?object $user, ?object $token): void
    {
        self::$user = $user;
        self::$token = $token;
    }

    public static function user(): ?object
    {
        return self::$user;
    }

    public static function token(): ?object
    {
        return self::$token;
    }
}

