Gdn_Plugin::setAddon PHP Méthode

setAddon() public méthode

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