Dingo\Api\Console\Command\Routes::getOptions PHP Метод

getOptions() защищенный Метод

Get the console command options.
protected getOptions ( ) : array
Результат array
    protected function getOptions()
    {
        $options = parent::getOptions();
        foreach ($options as $key => $option) {
            if ($option[0] == 'sort') {
                unset($options[$key]);
            }
        }
        return array_merge($options, [['sort', null, InputOption::VALUE_OPTIONAL, 'The column (domain, method, uri, name, action) to sort by'], ['versions', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Filter the routes by version'], ['scopes', 'S', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Filter the routes by scopes'], ['protected', null, InputOption::VALUE_NONE, 'Filter the protected routes'], ['unprotected', null, InputOption::VALUE_NONE, 'Filter the unprotected routes'], ['short', null, InputOption::VALUE_NONE, 'Get an abridged version of the routes']]);
    }