src/WebHook/Converter/StringConverter.php
public function convert($command)
    {
        if (0 !== strpos($command, '/')) {
            return new WebHook(['text' => $command] + $this->webHook);
        } else {
            list($command, $text) = explode(' ', $command, 2);

            return new SlashCommand(['command' => $command, 'text' => $text] + $this->slashCommand);
        }
    }
public function convert($command)
    {
        if (0 !== strpos($command, '/')) {
            return new WebHook(['text' => $command] + $this->webHook);
        } else {
            list($command, $text) = explode(' ', $command, 2);

            return new SlashCommand(['command' => $command, 'text' => $text] + $this->slashCommand);
        }
    }
@param $command

@return \Crummy\Phlack\WebHook\CommandInterface