options_helper = $options_helper; } /** * Sets the Site Kit consent value. * * @param bool $consent The consent status. * * @return bool False when the update failed, true when the update succeeded. */ public function set_site_kit_consent( bool $consent ): bool { return $this->options_helper->set( 'site_kit_connected', $consent ); } /** * Checks if consent has ben given for Site Kit. * * * * @return bool True when consent has been given, false when it is not. */ public function is_consent_granted(): bool { return $this->options_helper->get( 'site_kit_connected', false ); } }