various phpdoc improvements and additions
added some getter methods for properties
This commit is contained in:
1 parent
29f89ec15f
commit
002b537b47
38 files changed
+381
-188
No files matched your search
@@ -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