Explorar el Código

added business transact method

develop
Robin Thoni hace 10 años
padre
commit
fe848d4e56
Se han modificado 1 ficheros con 9 adiciones y 0 borrados
  1. 9
    0
      src/Utils/Business/LuBusiness.php

+ 9
- 0
src/Utils/Business/LuBusiness.php Ver fichero

34
         throw new LuBusinessException($reason, 400);
34
         throw new LuBusinessException($reason, 400);
35
     }
35
     }
36
 
36
 
37
+    /**
38
+     * @param \Closure $function
39
+     * @return mixed
40
+     */
41
+    public static function transact(\Closure $function)
42
+    {
43
+        return static::getDataAccess()->transact($function);
44
+    }
45
+
37
     /**
46
     /**
38
      * @param $id int
47
      * @param $id int
39
      * @return LuDbo
48
      * @return LuDbo

Loading…
Cancelar
Guardar