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

23 lines
503 B
PHP

<?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;
}
}