19 lines
337 B
PHP
19 lines
337 B
PHP
<?php
|
|
|
|
class ServerSwitch {
|
|
|
|
public function getConfig(){
|
|
if (!$this->switchConfig){
|
|
$this->initConfig();
|
|
}
|
|
return $this->switchConfig;
|
|
}
|
|
|
|
private $switchConfig = null;
|
|
|
|
private function initConfig(){
|
|
$this->switchConfig = getServerSwitchConfig();
|
|
}
|
|
|
|
}
|