phpmyadmin/libraries/classes/Engines/Ndbcluster.php
Kamil Tekiela 902d1a1e77
Add native return type hints (#18126)
* Add remaining native return type hints to flush out bugs

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Cast the mixed value to int

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Fix tests

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* getAutoIncrement() is supposed to return string

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Cast values to string in DummyResult

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Make getCollation() return non-nullable string

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Cast seqInIndex to int

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Cast $cardinality to int

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* createFile may return false

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Remove redundant cast

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

* Update baselines

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>

---------

Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-23 15:43:36 -03:00

51 lines
1007 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 array 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';
}
}