*/ public function to_array(): array; /** * Whether the visitor has opted out of measurement entirely. * * @return bool */ public function has_opted_out(): bool; /** * Whether the visitor's consent choice permits a given category. * * @param string $category Consent category, e.g. `statistics`. * @return bool */ public function allows( string $category ): bool; }