WordPress\AiClient\Providers\Http\Contracts
WithRequestAuthenticationInterface{}
Interface for models that support request authentication.
No Hooks.
Usage
$WithRequestAuthenticationInterface = new WithRequestAuthenticationInterface(); // use class methods
Methods
- public getRequestAuthentication()
- public setRequestAuthentication(\WordPress\AiClient\Providers\Http\Contracts\RequestAuthenticationInterface $authentication)
Changelog
| Since 0.1.0 | Introduced. |
WithRequestAuthenticationInterface{} WithRequestAuthenticationInterface{} code WP 7.0
interface WithRequestAuthenticationInterface
{
/**
* Sets the request authentication.
*
* @since 0.1.0
*
* @param RequestAuthenticationInterface $authentication The authentication instance.
* @return void
*/
public function setRequestAuthentication(\WordPress\AiClient\Providers\Http\Contracts\RequestAuthenticationInterface $authentication): void;
/**
* Returns the request authentication.
*
* @since 0.1.0
*
* @return RequestAuthenticationInterface The authentication instance.
*/
public function getRequestAuthentication(): \WordPress\AiClient\Providers\Http\Contracts\RequestAuthenticationInterface;
}