improved metadata properties of plugin class

This commit is contained in:
Steffen Schröder
2013-12-03 18:50:30 +01:00
parent ad6574b523
commit 35a7232894
6 changed files with 36 additions and 63 deletions

View File

@ -10,15 +10,18 @@ use ManiaControl\ManiaControl;
* @author steeffeen & kremsy
*/
abstract class Plugin {
/**
* Plugin Metadata
*/
public static $name = 'undefined';
public static $version = 'undefined';
public static $author = 'undefined';
public static $description = 'undefined';
/**
* Private properties
* Protected properties
*/
protected $maniaControl = null;
protected $name = 'undefined';
protected $version = 'undefined';
protected $author = 'undefined';
protected $description = 'undefined';
/**
* Create a new plugin
@ -29,48 +32,12 @@ abstract class Plugin {
/**
* Get class name as string
*
*
* @return string
*/
public static function getClass() {
public static final function getClass() {
return __CLASS__;
}
/**
* Get plugin author
*
* @return string
*/
public function getAuthor() {
return $this->author;
}
/**
* Get plugin version
*
* @return float
*/
public function getVersion() {
return $this->version;
}
/**
* Get plugin name
*
* @return string
*/
public function getName() {
return $this->name;
}
/**
* Get plugin description
*
* @return string
*/
public function getDescription() {
return $this->description;
}
}
?>