protected function saveParameter($method, $value)
    {
        if (!isset(static::$parameters[$method])) {
            static::$parameters[$method] = [];
        }

        if ($value instanceof Closure) {
            static::$parameters[$method]['callback'] = $value;
        } elseif (is_array($value)) {
            foreach ($value as $key => $attr) {
                static::$parameters[$method][$key] = $attr;
            }
        }else{
            static::$parameters[$method][] = $value;
        }

        return $this;
    }