TrackManiaControl/application/core/plugin.php

66 lines
905 B
PHP
Raw Normal View History

2013-11-09 11:06:04 +01:00
<?php
2013-11-09 12:20:38 +01:00
namespace ManiaControl;
2013-11-09 11:06:04 +01:00
/**
* Plugin parent class
2013-11-09 11:06:04 +01:00
*
* @author Lukas Kremsmayr and steeffeen
*/
abstract class Plugin {
2013-11-09 12:15:02 +01:00
/**
* Private properties
*/
protected $maniaControl;
protected $name;
protected $version;
protected $author;
protected $description;
2013-11-09 12:15:02 +01:00
/**
* Create plugin instance
2013-11-09 12:15:02 +01:00
*
* @param ManiaControl $maniaControl
2013-11-09 12:15:02 +01:00
*/
public abstract function __construct(ManiaControl $maniaControl);
2013-11-09 12:15:02 +01:00
/**
* Get plugin author
*
* @return string
*/
public function getAuthor() {
return $this->author;
}
2013-11-09 12:15:02 +01:00
/**
* Get plugin version
*
* @return float
*/
2013-11-10 12:00:47 +01:00
public function getVersion() {
return $this->version;
}
2013-11-09 19:26:57 +01:00
/**
* Get plugin name
*
* @return string
*/
2013-11-10 12:00:47 +01:00
public function getName() {
return $this->name;
}
2013-11-09 19:26:57 +01:00
/**
* Get plugin description
*
* @return string
*/
2013-11-10 12:00:47 +01:00
public function getDescription() {
return $this->description;
}
}
2013-11-09 19:26:57 +01:00
?>