<?php

namespace modules\selfserve;
require_once WD . '/modules/selfserve/config/selfserve_enabled_c.php';
require_once WD . '/modules/selfserve/config/selfserve_minute_product_c.php';

use modules\selfserve\config\selfserve_enabled_c;
use modules\selfserve\config\selfserve_minute_product_c;
use traits\module_config_t;

class selfserve_c
{
    use module_config_t;

    /**
     * The status of the module
     * @var selfserve_enabled_c $enabled
     */
    public selfserve_enabled_c $enabled;
    /**
     * The product ID used for minute-based self-serve billing
     * @var selfserve_minute_product_c $minute_product
     */
    public selfserve_minute_product_c $minute_product;

    public function __construct()
    {
        $this->setupConfig('selfserve');
        $this->allowUpdate([
            selfserve_enabled_c::class,
            selfserve_minute_product_c::class
        ]);
        $this->enabled = new selfserve_enabled_c();
        $this->minute_product = new selfserve_minute_product_c();
    }
}