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

getVersion() protected method

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