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