config = new limble_c(); $this->helpers = new limble_helpers(); } /** * @inheritDoc * @throws Exception If the module is not enabled */ public function requireModuleEnabled(): void { if (!(bool)$this->config->enabled->getVariableValue()) { throw new Exception('Limble module is not enabled'); } } /** * Get the task helper for the module * @return limble_tasks */ public function getTasks(): limble_tasks { return new $this->helpers->tasks(); } /** * Require the webhooks to be enabled * @throws Exception */ public function requireWebhooksEnabled(): void { if (!(bool)$this->config->webhooks_enabled->getVariableValue()) { throw new Exception('Limble webhooks are not enabled'); } } }