TrackManiaControl/application/core/Plugins/Plugin.php
Steffen Schröder 9e5e444552 - subfolders for different classes
- Improved file and class naming
- "handler"-> "listener" (callbacks, commands)
2013-11-12 15:48:25 +01:00

68 lines
1008 B
PHP

<?php
namespace ManiaControl\Plugins;
use ManiaControl\ManiaControl;
/**
* Plugin parent class
*
* @author steeffeen & kremsy
*/
abstract class Plugin {
/**
* Private properties
*/
protected $maniaControl = null;
protected $name = 'undefined';
protected $version = 'undefined';
protected $author = 'undefined';
protected $description = 'undefined';
/**
* Create a new plugin
*
* @param \ManiaControl\ManiaControl $maniaControl
*/
public abstract function __construct(ManiaControl $maniaControl);
/**
* 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;
}
}
?>