public static function getInstance() { if (!self::$instance) { $className = __CLASS__; self::$instance = new $className(); } return self::$instance; }