public static function getInstance() { //metodo Singleton if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c; } return self::$instance; }