microsoftAds = $microsoftAds; $this->serializer = $serializer; } /** * @return bool */ public function isEnabled(): bool { return $this->microsoftAds->isEnabled(); } /** * @return string */ public function getConsentTypesConfigJson(): string { return $this->serializer->serialize( $this->microsoftAds->getConsentTypesConfig() ); } }