<?php

namespace failover\config;

use Exception;
use traits\module_config_variable;

class failover_max_status_age_seconds_c
{
    use module_config_variable;

    /**
     * @throws Exception
     */
    public function __construct()
    {
        self::setupConfigVariable(
            'Failover',
            'max_status_age_seconds',
            'int',
            true,
            null,
            'Maximum age in seconds for a stored replica status to be eligible for automatic failover.',
            '90',
            false,
            '90'
        );
    }
}
