public function setInstance(PluginInstance $instance)
    {
        $this->instance = $instance;
        $this->pluginInstanceId = $instance->getInstanceId();
    }
public function setInstance(PluginInstance $instance)
    {
        $this->instance = $instance;
        $this->pluginInstanceId = $instance->getInstanceId();
    }
public function setInstance ( PluginInstance $ instance ) { $ this -> instance = $ instance ; $ this -> pluginInstanceId = $ instance -> getInstanceId ( ) ; }
Set the plugin instance to be wrapped

@param PluginInstance $instance Instance to wrap

@return void
Set the plugin instance to be wrapped