<?php

declare(strict_types=1);

namespace PHPMax\Domain\Auth;

use PHPMax\Support\Model;

class StartAuthResponse extends Model
{
     
    public $token;
     
    public $codeLength;
     
    public $requestMaxDuration;
     
    public $requestCountLeft;
     
    public $altActionDuration;

    protected static function schema(): array
    {
        return [
            'token' => ['type' => 'string', 'required' => true],
            'codeLength' => ['type' => 'int', 'required' => true],
            'requestMaxDuration' => ['type' => 'int', 'required' => true],
            'requestCountLeft' => ['type' => 'int', 'required' => true],
            'altActionDuration' => ['type' => 'int', 'required' => true],
        ];
    }
}

