Private internal methods

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2023-12-11 03:16:49 +01:00
parent be734dd209
commit 5c15af6fb6

View File

@ -102,7 +102,7 @@ class RecentFavoriteTable
*
* @return mixed[]
*/
public function getFromDb(): array
private function getFromDb(): array
{
// Read from phpMyAdmin database, if recent tables is not in session
$dbi = DatabaseInterface::getInstance();
@ -126,7 +126,7 @@ class RecentFavoriteTable
*
* @return true|Message
*/
public function saveToDb(): bool|Message
private function saveToDb(): bool|Message
{
$username = Config::getInstance()->selectedServer['user'];
$dbi = DatabaseInterface::getInstance();
@ -158,7 +158,7 @@ class RecentFavoriteTable
* Trim recent.favorite table according to the
* NumRecentTables/NumFavoriteTables configuration.
*/
public function trim(): bool
private function trim(): bool
{
$max = max(
Config::getInstance()->settings['Num' . ucfirst($this->tableType->value) . 'Tables'],