WP_AI_Client_HTTP_Client::__construct │ public │ WP 7.0.0

Constructor.

Метод класса: WP_AI_Client_HTTP_Client{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WP_AI_Client_HTTP_Client = new WP_AI_Client_HTTP_Client();
$WP_AI_Client_HTTP_Client->__construct( $response_factory, $stream_factory );
$response_factory(ResponseFactoryInterface) (обязательный)
PSR-17 Response factory.
$stream_factory(StreamFactoryInterface) (обязательный)
PSR-17 Stream factory.

Список изменений

С версии 7.0.0 Введена.

Код WP_AI_Client_HTTP_Client::__construct() WP 7.1.2

public function __construct( ResponseFactoryInterface $response_factory, StreamFactoryInterface $stream_factory ) {
	$this->response_factory = $response_factory;
	$this->stream_factory   = $stream_factory;
}