| 1 | <?php |
||
| 11 | class DatabaseConfigFile { |
||
| 12 | |||
| 13 | private $configDir; |
||
| 14 | private $configPath; |
||
| 15 | |||
| 16 | public static function newInstance() { |
||
| 19 | |||
| 20 | private function __construct() { |
||
| 24 | |||
| 25 | public function write( array $config ) { |
||
| 37 | |||
| 38 | private function createDirIfNeeded() { |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @throws RuntimeException |
||
| 50 | */ |
||
| 51 | public function read(): array { |
||
| 60 | |||
| 61 | } |
||
| 62 | |||
| 63 |