Extract interface for InstalledPluginInformation
This commit is contained in:
parent
6b2d0aebf1
commit
dd5ff7a835
|
@ -3,7 +3,7 @@
|
|||
namespace PHPCI\Plugin\Util;
|
||||
|
||||
|
||||
class ComposerPluginInformation
|
||||
class ComposerPluginInformation implements InstalledPluginInformation
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
|
|
23
PHPCI/Plugin/Util/InstalledPluginInformation.php
Normal file
23
PHPCI/Plugin/Util/InstalledPluginInformation.php
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
namespace PHPCI\Plugin\Util;
|
||||
|
||||
|
||||
interface InstalledPluginInformation
|
||||
{
|
||||
/**
|
||||
* Returns an array of objects. Each one represents an available plugin
|
||||
* and will have the following properties:
|
||||
* name - The friendly name of the plugin (may be an empty string)
|
||||
* class - The class of the plugin (will include namespace)
|
||||
* @return \stdClass[]
|
||||
*/
|
||||
public function getInstalledPlugins();
|
||||
|
||||
/**
|
||||
* Returns an array of all the class names of plugins that have been
|
||||
* loaded.
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getPluginClasses();
|
||||
}
|
Loading…
Reference in a new issue