File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
src/Tqdev/PhpCrudApi/Column Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -799,15 +799,15 @@ class ReflectionService
799
799
private $ cache ;
800
800
private $ ttl ;
801
801
private $ database ;
802
- private $ tableCache ;
802
+ private $ tables ;
803
803
804
804
public function __construct (GenericDB $ db , Cache $ cache , int $ ttl )
805
805
{
806
806
$ this ->db = $ db ;
807
807
$ this ->cache = $ cache ;
808
808
$ this ->ttl = $ ttl ;
809
809
$ this ->database = $ this ->loadTables (true );
810
- $ this ->tableCache = [];
810
+ $ this ->tables = [];
811
811
}
812
812
813
813
private function loadTables (bool $ useCache ): ReflectedDatabase
@@ -843,7 +843,7 @@ public function refreshTables()
843
843
844
844
public function refreshTable (String $ tableName )
845
845
{
846
- $ this ->tableCache [$ tableName ] = $ this ->loadTable ($ tableName , false );
846
+ $ this ->tables [$ tableName ] = $ this ->loadTable ($ tableName , false );
847
847
}
848
848
849
849
public function hasTable (String $ table ): bool
@@ -853,10 +853,10 @@ public function hasTable(String $table): bool
853
853
854
854
public function getTable (String $ table ): ReflectedTable
855
855
{
856
- if (!isset ($ this ->tableCache [$ table ])) {
857
- $ this ->tableCache [$ table ] = $ this ->loadTable ($ table , true );
856
+ if (!isset ($ this ->tables [$ table ])) {
857
+ $ this ->tables [$ table ] = $ this ->loadTable ($ table , true );
858
858
}
859
- return $ this ->tableCache [$ table ];
859
+ return $ this ->tables [$ table ];
860
860
}
861
861
862
862
public function getTableNames (): array
Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ class ReflectionService
12
12
private $ cache ;
13
13
private $ ttl ;
14
14
private $ database ;
15
- private $ tableCache ;
15
+ private $ tables ;
16
16
17
17
public function __construct (GenericDB $ db , Cache $ cache , int $ ttl )
18
18
{
19
19
$ this ->db = $ db ;
20
20
$ this ->cache = $ cache ;
21
21
$ this ->ttl = $ ttl ;
22
22
$ this ->database = $ this ->loadTables (true );
23
- $ this ->tableCache = [];
23
+ $ this ->tables = [];
24
24
}
25
25
26
26
private function loadTables (bool $ useCache ): ReflectedDatabase
@@ -56,7 +56,7 @@ public function refreshTables()
56
56
57
57
public function refreshTable (String $ tableName )
58
58
{
59
- $ this ->tableCache [$ tableName ] = $ this ->loadTable ($ tableName , false );
59
+ $ this ->tables [$ tableName ] = $ this ->loadTable ($ tableName , false );
60
60
}
61
61
62
62
public function hasTable (String $ table ): bool
@@ -66,10 +66,10 @@ public function hasTable(String $table): bool
66
66
67
67
public function getTable (String $ table ): ReflectedTable
68
68
{
69
- if (!isset ($ this ->tableCache [$ table ])) {
70
- $ this ->tableCache [$ table ] = $ this ->loadTable ($ table , true );
69
+ if (!isset ($ this ->tables [$ table ])) {
70
+ $ this ->tables [$ table ] = $ this ->loadTable ($ table , true );
71
71
}
72
- return $ this ->tableCache [$ table ];
72
+ return $ this ->tables [$ table ];
73
73
}
74
74
75
75
public function getTableNames (): array
You can’t perform that action at this time.
0 commit comments