database = DatabaseStorageDriver::getCentralConnection(); $this->tableName = $this->getTable($config); $this->table = $this->database->table($this->tableName); } public function table() { return $this->table->newQuery()->from($this->tableName); } abstract public function getTable(ConfigRepository $config); public function __call($method, $parameters) { return $this->table()->$method(...$parameters); } }