src/NestableTrait.php
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;
    }
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;
    }
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 ; }
Save the service parameters.

@param string $method Method name in NestableService
@param mixed  $value

@return object
Save the service parameters .