Dingo\Api\Console\Command\Docs::getDocName PHP Method

getDocName() protected method

Get the documentation name.
protected getDocName ( ) : string
return string
    protected function getDocName()
    {
        $name = $this->option('name') ?: $this->name;
        if (!$name) {
            $this->comment('A name for the documentation was not supplied. Use the --name option or set a default in the configuration.');
            exit;
        }
        return $name;
    }