<?php

namespace modules\edgegateway\config;

use Exception;
use traits\module_config_variable;

class edgegateway_broker_shared_secret_c
{
    use module_config_variable;

    /**
     * @throws Exception
     */
    public function __construct()
    {
        $this->setupConfigVariable(
            'edgegateway',
            'broker_shared_secret',
            'string',
            false,
            null,
            'The shared secret used between the edge broker and PHP manager callbacks.',
            'truckwash-edge-dev',
            true,
            trim((string)(getenv('EDGE_BROKER_SHARED_SECRET') ?: ''))
        );
    }
}
