# cookiebot/3.10.0/addons/lib/cookie-consent-interface.php

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

- Page: https://pluginprobe.com/plugins/cookiebot/3.10.0/code/addons/lib/cookie-consent-interface.php
- Raw: https://pluginprobe.com/plugins/cookiebot/3.10.0/raw/addons/lib/cookie-consent-interface.php
- Modified: 2018-07-31T11:41:44+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/3.10.0/code/addons/lib/cookie-consent-interface.php#L10-L20`.

```php
<?php

namespace cookiebot_addons\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( $states );
}

```
