public function mergeParams($method, Array $params = [])
    {
        $newParams = [];
        $preparedParams = $this->defaultParams;
        $preparedParams['bean'] = $params;

        $newParams[$method] = $preparedParams;

        return $newParams;
    }
public function mergeParams($method, Array $params = [])
    {
        $newParams = [];
        $preparedParams = $this->defaultParams;
        $preparedParams['bean'] = $params;

        $newParams[$method] = $preparedParams;

        return $newParams;
    }
public function mergeParams ( $ method , Array $ params = [ ] ) { $ newParams = [ ] ; $ preparedParams = $ this -> defaultParams ; $ preparedParams [ 'bean' ] = $ params ; $ newParams [ $ method ] = $ preparedParams ; return $ newParams ; }
Group params in a bean

@param       $method
@param array $params

@return array
Group params in a bean