Allows for checking the availability before creating a new instance. - Fixes https://github.com/phpmyadmin/phpmyadmin/issues/17519 Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
20 lines
350 B
PHP
20 lines
350 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpMyAdmin\Plugins;
|
|
|
|
use PhpMyAdmin\Properties\Plugins\PluginPropertyItem;
|
|
|
|
interface Plugin
|
|
{
|
|
/**
|
|
* @psalm-return non-empty-lowercase-string
|
|
*/
|
|
public function getName(): string;
|
|
|
|
public function getProperties(): PluginPropertyItem;
|
|
|
|
public static function isAvailable(): bool;
|
|
}
|