<?php

declare(strict_types=1);

namespace App\Domain\Sysapi\Facades;

use App\Domain\Sysapi\Contracts\SysapiBridge;
use App\Domain\Sysapi\Contracts\SysapiResult;
use Illuminate\Support\Facades\Facade;

/**
 * Sysapi static accessor.
 *
 * Kullanım:
 *   Sysapi::run('user-add', ['username' => 'onx_demo01']);
 *   Sysapi::isReal();
 *   Sysapi::allowedActions();
 *
 * @method static SysapiResult run(string $command, array $args = [], int $timeoutSeconds = 60)
 * @method static bool isReal()
 * @method static array<string> allowedActions()
 *
 * @see SysapiBridge
 */
final class Sysapi extends Facade
{
    protected static function getFacadeAccessor(): string
    {
        return SysapiBridge::class;
    }
}
