public function getChatCommands()
    {
        $chatCommands = [];
        foreach ($this->commands as $chatCommand => $data) {
            $chatCommands[$data->getCommand()] = clone $data;
        }

        return $chatCommands;
    }
public function getChatCommands()
    {
        $chatCommands = [];
        foreach ($this->commands as $chatCommand => $data) {
            $chatCommands[$data->getCommand()] = clone $data;
        }

        return $chatCommands;
    }
public function getChatCommands ( ) { $ chatCommands = [ ] ; foreach ( $ this -> commands as $ chatCommand => $ data ) { $ chatCommands [ $ data -> getCommand ( ) ] = clone $ data ; } return $ chatCommands ; }
Get list of all chat commands.

return array
Get list of all chat commands .