public function setRestInputParams($data)
    {
        $oldValue = $this->registry->registry(self::REG_REST_INPUT);
        if (!is_null($oldValue)) {
            $this->registry->unregister(self::REG_REST_INPUT);
        }
        $this->registry->register(self::REG_REST_INPUT, $data);
    }
public function setRestInputParams($data)
    {
        $oldValue = $this->registry->registry(self::REG_REST_INPUT);
        if (!is_null($oldValue)) {
            $this->registry->unregister(self::REG_REST_INPUT);
        }
        $this->registry->register(self::REG_REST_INPUT, $data);
    }
public function setRestInputParams ( $ data ) { $ oldValue = $ this -> registry -> registry ( self :: REG_REST_INPUT ) ; if ( ! is_null ( $ oldValue ) ) { $ this -> registry -> unregister ( self :: REG_REST_INPUT ) ; } $ this -> registry -> register ( self :: REG_REST_INPUT , $ data ) ; }
Save REST input parameters into Magento registry.

@param $data
Save REST input parameters into Magento registry .