Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
requestevent.php
1<?php
2
10namespace Bitrix\Main\Web\Http;
11
12use Bitrix\Main;
14use Psr\Http\Message\RequestInterface;
15
20{
22 protected RequestInterface $request;
23
24 public function __construct(HttpClient $client, RequestInterface $request, string $type)
25 {
26 parent::__construct('main', $type);
27
28 $this->client = $client;
29 $this->request = $request;
30 }
31
32 public function getClient(): HttpClient
33 {
34 return $this->client;
35 }
36
37 public function getRequest(): RequestInterface
38 {
39 return $this->request;
40 }
41}
__construct(HttpClient $client, RequestInterface $request, string $type)