Initial commit xmarticaims
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user