improved metadata properties of plugin class
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user