public function disable() { if (!$this->enabled) { return; } $this->enabled = false; $this->onDisable(); }