Privatize StructureController's elemets

This class cannot be made final because it's mocked, but it's never extended and should not be extended.

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
Kamil Tekiela 2023-12-27 17:47:33 +01:00
parent 6ab2b59d8d
commit 1b913bb1da

View File

@ -48,7 +48,7 @@ use function strtotime;
*/
class StructureController extends AbstractController
{
protected readonly Table $tableObj;
private readonly Table $tableObj;
public function __construct(
ResponseRenderer $response,
@ -150,7 +150,7 @@ class StructureController extends AbstractController
* @param (string|int)[] $columnsWithIndex Columns with index
* @psalm-param non-empty-string $route
*/
protected function displayStructure(
private function displayStructure(
RelationParameters $relationParameters,
array $columnsWithUniqueIndex,
Index|null $primaryIndex,
@ -292,7 +292,7 @@ class StructureController extends AbstractController
/**
* Get HTML snippet for display table statistics
*/
protected function getTableStats(
private function getTableStats(
bool $isSystemSchema,
bool $tableIsAView,
string $tableStorageEngine,