瀏覽代碼

changed LuDatabaseProvider to interface

develop
Robin Thoni 8 年之前
父節點
當前提交
3e14a5f9c3
共有 2 個文件被更改,包括 3 次插入6 次删除
  1. 1
    1
      src/Utils/DataAccess/LuDataAccess.php
  2. 2
    5
      src/Utils/DataAccess/LuDatabaseProvider.php

+ 1
- 1
src/Utils/DataAccess/LuDataAccess.php 查看文件

@@ -10,7 +10,7 @@ use Luticate\Utils\Business\LuStringUtils;
10 10
 use Luticate\Utils\Dbo\LuDbo;
11 11
 use Luticate\Utils\Dbo\LuPaginatedDbo;
12 12
 
13
-abstract class LuDataAccess extends LuDatabaseProvider {
13
+abstract class LuDataAccess implements LuDatabaseProvider {
14 14
 
15 15
     protected static $_connection = "mydb";
16 16
     protected static $_table = "mydb_table";

+ 2
- 5
src/Utils/DataAccess/LuDatabaseProvider.php 查看文件

@@ -8,10 +8,7 @@
8 8
 
9 9
 namespace Luticate\Utils\DataAccess;
10 10
 
11
-
12
-abstract class LuDatabaseProvider
11
+interface LuDatabaseProvider
13 12
 {
14
-    public static function setupDatabases($databases)
15
-    {
16
-    }
13
+    public static function setupDatabases($databases);
17 14
 }

Loading…
取消
儲存