public function addPlugin(PluginInterface $plugin)
    {
        $plugin->setNode($this);

        $this->plugins->attach($plugin);
    }
public function addPlugin(PluginInterface $plugin)
    {
        $plugin->setNode($this);

        $this->plugins->attach($plugin);
    }
public function addPlugin ( PluginInterface $ plugin ) { $ plugin -> setNode ( $ this ) ; $ this -> plugins -> attach ( $ plugin ) ; }
Attach a plugin

@param PluginInterface $plugin
Attach a plugin