Files
Testing/blog/wp-content/plugins/cookiebot/addons/lib/cookie-consent-interface.php
sean 343b4a3f3f
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-19 18:32:17 -05:00

54 lines
1005 B
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 );
}