2
0
Fork 0
forked from flashii/eeprom
eeprom-nabucco/src/EEPROMContext.php

24 lines
503 B
PHP
Raw Normal View History

2023-11-07 17:12:47 +00:00
<?php
namespace EEPROM;
use Index\Data\IDbConnection;
use Syokuhou\IConfig;
class EEPROMContext {
private IConfig $config;
private DatabaseContext $dbCtx;
public function __construct(IConfig $config, IDbConnection $dbConn) {
$this->config = $config;
$this->dbCtx = new DatabaseContext($dbConn);
}
public function getConfig(): IConfig {
return $this->config;
}
public function getDatabase(): DatabaseContext {
return $this->dbCtx;
}
}