some-dungeon-game/class_settingsman.php

20 lines
323 B
PHP
Raw Permalink Normal View History

2021-03-18 19:58:26 +00:00
<?php
class SettingsMan
{
static private $sets;
static public function get($set = 0)
{
return self::$sets[$set];
}
static public function add($set = null, Settings $settings)
{
if ($set !== null)
self::$sets[$set] = $settings;
else
self::$sets[] = $settings;
}
}