Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
request.php
1
<?php
2
3
namespace
Bitrix\MessageService\DTO
;
4
5
class
Request
6
{
7
public
$method
;
8
public
$uri
;
9
public
$headers
= [];
10
public
$body
;
11
12
public
function
__construct
(array $fields =
null
)
13
{
14
if
($fields !==
null
)
15
{
16
$this->
hydrate
($fields);
17
}
18
}
19
20
public
function
hydrate
(array $fields)
21
{
22
$this->method = $fields[
'method'
] ??
$this->method
;
23
$this->uri = $fields[
'uri'
] ??
$this->uri
;
24
$this->headers = $fields[
'headers'
] ??
$this->headers
;
25
$this->body = $fields[
'body'
] ??
$this->body
;
26
}
27
}
Bitrix\MessageService\DTO\Request
Definition
request.php:6
Bitrix\MessageService\DTO\Request\$method
$method
Definition
request.php:7
Bitrix\MessageService\DTO\Request\$body
$body
Definition
request.php:10
Bitrix\MessageService\DTO\Request\__construct
__construct(array $fields=null)
Definition
request.php:12
Bitrix\MessageService\DTO\Request\$headers
$headers
Definition
request.php:9
Bitrix\MessageService\DTO\Request\$uri
$uri
Definition
request.php:8
Bitrix\MessageService\DTO\Request\hydrate
hydrate(array $fields)
Definition
request.php:20
Bitrix\MessageService\DTO
Definition
request.php:3
modules
messageservice
lib
dto
request.php
Создано системой
1.10.0