various phpdoc improvements and additions
added some getter methods for properties
This commit is contained in:
@@ -16,9 +16,10 @@ use ManiaControl\ManiaControl;
|
||||
*/
|
||||
class CommandManager implements CallbackListener {
|
||||
/*
|
||||
* Private Properties
|
||||
* Private properties
|
||||
*/
|
||||
private $maniaControl = null;
|
||||
/** @var HelpManager $helpManager */
|
||||
private $helpManager = array();
|
||||
/** @var Listening[][] $commandListenings */
|
||||
private $commandListenings = array();
|
||||
@@ -33,13 +34,22 @@ class CommandManager implements CallbackListener {
|
||||
public function __construct(ManiaControl $maniaControl) {
|
||||
$this->maniaControl = $maniaControl;
|
||||
|
||||
// Create help manager instance
|
||||
// Children
|
||||
$this->helpManager = new HelpManager($this->maniaControl);
|
||||
|
||||
// Register for callback
|
||||
// Callbacks
|
||||
$this->maniaControl->callbackManager->registerCallbackListener(CallbackManager::CB_MP_PLAYERCHAT, $this, 'handleChatCallback');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the help manager instance
|
||||
*
|
||||
* @return HelpManager
|
||||
*/
|
||||
public function getHelpManager() {
|
||||
return $this->helpManager;
|
||||
}
|
||||
|
||||
/**
|
||||
* Register a Command Listener
|
||||
*
|
||||
|
Reference in New Issue
Block a user