Replace array type hint with mixed[] type hint, since it means the same. This way it's possible to require traversable type hint for new code. Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
49 lines
986 B
PHP
49 lines
986 B
PHP
<?php
|
|
/**
|
|
* The NDBCLUSTER storage engine
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpMyAdmin\Engines;
|
|
|
|
use PhpMyAdmin\StorageEngine;
|
|
|
|
/**
|
|
* The NDBCLUSTER storage engine
|
|
*/
|
|
class Ndbcluster extends StorageEngine
|
|
{
|
|
/**
|
|
* Returns array with variable names related to NDBCLUSTER storage engine
|
|
*
|
|
* @return mixed[] variable names
|
|
*/
|
|
public function getVariables(): array
|
|
{
|
|
return ['ndb_connectstring' => []];
|
|
}
|
|
|
|
/**
|
|
* Returns the pattern to be used in the query for SQL variables
|
|
* related to NDBCLUSTER storage engine
|
|
*
|
|
* @return string SQL query LIKE pattern
|
|
*/
|
|
public function getVariablesLikePattern(): string
|
|
{
|
|
return 'ndb\\_%';
|
|
}
|
|
|
|
/**
|
|
* Returns string with filename for the MySQL help page
|
|
* about this storage engine
|
|
*
|
|
* @return string mysql helppage filename
|
|
*/
|
|
public function getMysqlHelpPage(): string
|
|
{
|
|
return 'ndbcluster';
|
|
}
|
|
}
|