public static function close() { if (self::$conn) { self::$conn->commit(); self::$conn = null; } }
public static function close() { if (self::$conn) { //Aplica as operações realizadas durante a transação self::$conn->commit(); self::$conn = NULL; } }