Spatie\SlashCommand\Handlers\SignatureHandler::getHelpDescription PHP Метод

getHelpDescription() публичный Метод

Get the usage description, including parameters and options.
public getHelpDescription ( ) : string
Результат string
    public function getHelpDescription() : string
    {
        $inputDefinition = $this->inputDefinition;
        $output = new BufferedOutput();
        $name = $this->getFullCommand();
        $command = (new Command($name))->setDefinition($inputDefinition)->setDescription($this->getDescription());
        $descriptor = new DescriptorHelper();
        $descriptor->describe($output, $command);
        return $output->fetch();
    }