Skip to content

Commit e4cb96d

Browse files
committed
Rename variable
1 parent 45409c8 commit e4cb96d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

api.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -799,15 +799,15 @@ class ReflectionService
799799
private $cache;
800800
private $ttl;
801801
private $database;
802-
private $tableCache;
802+
private $tables;
803803

804804
public function __construct(GenericDB $db, Cache $cache, int $ttl)
805805
{
806806
$this->db = $db;
807807
$this->cache = $cache;
808808
$this->ttl = $ttl;
809809
$this->database = $this->loadTables(true);
810-
$this->tableCache = [];
810+
$this->tables = [];
811811
}
812812

813813
private function loadTables(bool $useCache): ReflectedDatabase
@@ -843,7 +843,7 @@ public function refreshTables()
843843

844844
public function refreshTable(String $tableName)
845845
{
846-
$this->tableCache[$tableName] = $this->loadTable($tableName, false);
846+
$this->tables[$tableName] = $this->loadTable($tableName, false);
847847
}
848848

849849
public function hasTable(String $table): bool
@@ -853,10 +853,10 @@ public function hasTable(String $table): bool
853853

854854
public function getTable(String $table): ReflectedTable
855855
{
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);
858858
}
859-
return $this->tableCache[$table];
859+
return $this->tables[$table];
860860
}
861861

862862
public function getTableNames(): array

src/Tqdev/PhpCrudApi/Column/ReflectionService.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ class ReflectionService
1212
private $cache;
1313
private $ttl;
1414
private $database;
15-
private $tableCache;
15+
private $tables;
1616

1717
public function __construct(GenericDB $db, Cache $cache, int $ttl)
1818
{
1919
$this->db = $db;
2020
$this->cache = $cache;
2121
$this->ttl = $ttl;
2222
$this->database = $this->loadTables(true);
23-
$this->tableCache = [];
23+
$this->tables = [];
2424
}
2525

2626
private function loadTables(bool $useCache): ReflectedDatabase
@@ -56,7 +56,7 @@ public function refreshTables()
5656

5757
public function refreshTable(String $tableName)
5858
{
59-
$this->tableCache[$tableName] = $this->loadTable($tableName, false);
59+
$this->tables[$tableName] = $this->loadTable($tableName, false);
6060
}
6161

6262
public function hasTable(String $table): bool
@@ -66,10 +66,10 @@ public function hasTable(String $table): bool
6666

6767
public function getTable(String $table): ReflectedTable
6868
{
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);
7171
}
72-
return $this->tableCache[$table];
72+
return $this->tables[$table];
7373
}
7474

7575
public function getTableNames(): array

0 commit comments

Comments
 (0)