phpmyadmin/libraries/classes/Plugins/Plugin.php
Maurício Meneghini Fauth 43cfe7d256
Mark Plugins\Plugin::isAvailable as static method
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>
2022-05-20 14:17:57 -03:00

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;
}