<?php

declare(strict_types=1);

namespace App\Framework\Auth;

use Attribute;

#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
class Auth
{
    /**
     * @param array<int, string> $allowedIps
     * @param array<int, string> $roles
     */
    public function __construct(
        public readonly string $strategy = 'session',
        public readonly array $allowedIps = [],
        public readonly array $roles = []
    ) {
    }
}
