This commit is contained in:
2026-10-12 20:35:25 -06:00
parent bef9999f6a
commit 225515570a
963 changed files with 273176 additions and 0 deletions
@@ -0,0 +1,21 @@
<?php
namespace WP_Rocket\Addon\Cloudflare\Auth;
use WP_Error;
interface AuthInterface {
/**
* Gets headers for Cloudflare API request
*
* @return array
*/
public function get_headers(): array;
/**
* Checks if the credentials are set.
*
* @return bool|WP_Error true if authorized, false otherwise, WP_Error if missing credentials.
*/
public function is_valid_credentials();
}