<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace App\CSPro;
use Psr\Log\LoggerInterface;
use App\Service\PdoHelper;

class DBConfigSettings {
    private $serverDeviceId;
    
    public function __construct(private PdoHelper $pdo, private LoggerInterface $logger)
    {
    }
    public function getServerDeviceId(){
        if(empty($this->serverDeviceId)){
            $stm = 'SELECT value  FROM  cspro_config where name=\'server_device_id\'';
            $this->serverDeviceId = (string) $this->pdo->fetchValue($stm);
        }
        return $this->serverDeviceId;
    }
}
