function parseCommandArgs() {
        if($this->command === null) {
            throw new \LogicException('This message has no command');
        }
        
        switch($this->command->argsType) {
            case 'single':
                $args = $this->argString;
                return \preg_replace(($this->command->argsSingleQuotes ? '/^("|\')(.*)\1$/u' : '/^(")(.*)"$/u'), '$2', $args);
            case 'multiple':
                return self::parseArgs($this->argString, $this->command->argsCount, $this->command->argsSingleQuotes);
            default:
                throw new \RangeException('Unknown argsType "'.$this->command->argsType.'".');
        }
    }
function parseCommandArgs() {
        if($this->command === null) {
            throw new \LogicException('This message has no command');
        }
        
        switch($this->command->argsType) {
            case 'single':
                $args = $this->argString;
                return \preg_replace(($this->command->argsSingleQuotes ? '/^("|\')(.*)\1$/u' : '/^(")(.*)"$/u'), '$2', $args);
            case 'multiple':
                return self::parseArgs($this->argString, $this->command->argsCount, $this->command->argsSingleQuotes);
            default:
                throw new \RangeException('Unknown argsType "'.$this->command->argsType.'".');
        }
    }
function parseCommandArgs ( ) { if ( $ this -> command === null ) { throw new \ LogicException ( 'This message has no command' ) ; } switch ( $ this -> command -> argsType ) { case 'single' : $ args = $ this -> argString ; return \ preg_replace ( ( $ this -> command -> argsSingleQuotes ? '/^("|\')(.*)\1$/u' : '/^(")(.*)"$/u' ) , '$2' , $ args ) ; case 'multiple' : return self :: parseArgs ( $ this -> argString , $ this -> command -> argsCount , $ this -> command -> argsSingleQuotes ) ; default : throw new \ RangeException ( 'Unknown argsType "' . $ this -> command -> argsType . '".' ) ; } }
Parses the argString into usable arguments, based on the argsType and argsCount of the command.
@return string|string[]
@throws \LogicException
@throws \RangeException
Parses the argString into usable arguments based on the argsType and argsCount of the command .