public function __destruct() { if (self::$oSelf instanceof self) { self::$oSelf = null; //destruyo el objeto } }