15 lines
261 B
PHP
15 lines
261 B
PHP
<?php
|
|
|
|
namespace WP_Rocket\Engine\Common\Context;
|
|
|
|
interface ContextInterface {
|
|
|
|
/**
|
|
* Determine if the action is allowed.
|
|
*
|
|
* @param array $data Data to pass to the context.
|
|
* @return bool
|
|
*/
|
|
public function is_allowed( array $data = [] ): bool;
|
|
}
|