WordPress\AiClient\Providers\Http\Contracts
WithHttpTransporterInterface{}
Interface for models that require HTTP transport capabilities.
No Hooks.
Usage
$WithHttpTransporterInterface = new WithHttpTransporterInterface(); // use class methods
Methods
- public getHttpTransporter()
- public setHttpTransporter(\WordPress\AiClient\Providers\Http\Contracts\HttpTransporterInterface $transporter)
Changelog
| Since 0.1.0 | Introduced. |
WithHttpTransporterInterface{} WithHttpTransporterInterface{} code WP 7.0
interface WithHttpTransporterInterface
{
/**
* Sets the HTTP transporter.
*
* @since 0.1.0
*
* @param HttpTransporterInterface $transporter The HTTP transporter instance.
* @return void
*/
public function setHttpTransporter(\WordPress\AiClient\Providers\Http\Contracts\HttpTransporterInterface $transporter): void;
/**
* Returns the HTTP transporter.
*
* @since 0.1.0
*
* @return HttpTransporterInterface The HTTP transporter instance.
*/
public function getHttpTransporter(): \WordPress\AiClient\Providers\Http\Contracts\HttpTransporterInterface;
}