WordPress\AiClient\Providers\Http\Contracts

WithRequestAuthenticationInterface{}interfaceWP 0.1.0

Interface for models that support request authentication.

No Hooks.

Usage

$WithRequestAuthenticationInterface = new WithRequestAuthenticationInterface();
// use class methods

Methods

  1. public getRequestAuthentication()
  2. public setRequestAuthentication(\WordPress\AiClient\Providers\Http\Contracts\RequestAuthenticationInterface $authentication)

Changelog

Since 0.1.0 Introduced.

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;
}