Gdn_Plugin::setAddon PHP Method

setAddon() public method

Set the addon that this plugin belongs to.
public setAddon ( Addon $addon ) : Gdn_Plugin
$addon Vanilla\Addon The new addon.
return Gdn_Plugin Returns `$this` for fluent calls.
    public function setAddon(Addon $addon)
    {
        $this->addon = $addon;
        return $this;
    }