Extract interface for InstalledPluginInformation

This commit is contained in:
meadsteve 2014-02-25 19:40:00 +00:00
parent 6b2d0aebf1
commit dd5ff7a835
2 changed files with 24 additions and 1 deletions

View file

@ -3,7 +3,7 @@
namespace PHPCI\Plugin\Util;
class ComposerPluginInformation
class ComposerPluginInformation implements InstalledPluginInformation
{
/**
* @var array

View 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();
}