| 1 | <?php |
||
| 19 | class TableRegistry |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @var array $tables |
||
| 23 | */ |
||
| 24 | private $tableNameMap = []; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var array $tableClassMap |
||
| 28 | */ |
||
| 29 | private $tableClassMap = []; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $tableClass |
||
| 33 | * @param string $tableName |
||
| 34 | * |
||
| 35 | * @return $this |
||
| 36 | */ |
||
| 37 | 1 | public function registerTable($tableClass, $tableName) |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @param string $tableName |
||
| 47 | * |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | 28 | public function getTableClass($tableName) |
|
| 58 | } |