protected function getMethods()
    {
        if ($this->option('plain')) {
            return [];
        }

        $methods = ['all', 'find', 'create', 'update', 'delete'];

        if (($only = $this->option('only')) && $only != '') {
            $methods = array_flip(array_only(array_flip($methods), $this->getArray($only)));
        }

        if (($except = $this->option('except')) && $except != '') {
            $methods = array_flip(array_except(array_flip($methods), $this->getArray($except)));
        }

        return $methods;
    }