# cookiebot/4.7.4/src/lib/Cookie_Consent_Interface.php

Cookiebot by Usercentrics – Automatic Cookie Banner for GDPR/CCPA &amp; Google Consent Mode, version 4.7.4. 55 lines.

- Page: https://pluginprobe.com/plugins/cookiebot/4.7.4/code/src/lib/Cookie_Consent_Interface.php
- Raw: https://pluginprobe.com/plugins/cookiebot/4.7.4/raw/src/lib/Cookie_Consent_Interface.php
- Modified: 2025-01-28T12:24:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cookiebot/4.7.4/code/src/lib/Cookie_Consent_Interface.php#L10-L20`.

```php
<?php

namespace cybot\cookiebot\lib;

interface Cookie_Consent_Interface {


	/**
	 * Scans cookiebot consent cookie and fills in $states with accepted consents.
	 *
	 * @since 1.2.0
	 */
	public function scan_cookie();

	/**
	 * Adds state to $states variable
	 *
	 * @param $state    string  new state
	 *
	 * @since 1.2.0
	 */
	public function add_state( $state );

	/**
	 * Returns cookiebot cookie consent state
	 *
	 * @return array    array   List of accepted cookiebot consents
	 *
	 * @since 1.2.0
	 */
	public function get_cookie_states();

	/**
	 * Checks if the cookie state is accepted
	 *
	 * @param $state    string  Cookie state to check if it is accepted
	 *
	 * @return bool
	 *
	 * @since 1.2.0
	 */
	public function is_cookie_state_accepted( $state );

	/**
	 * Checks if the cookie states are accepted.
	 *
	 * @param $states    array  Cookie states to check if it is accepted.
	 *
	 * @return bool
	 *
	 * @since 1.3.0
	 */
	public function are_cookie_states_accepted( array $states );
}

```
