Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
response.php
1
<?php
2
3
namespace
Bitrix\MessageService\DTO
;
4
5
class
Response
6
{
7
public
$statusCode
= 0;
8
public
$headers
= [];
9
public
$body
=
""
;
10
public
$error
=
""
;
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->statusCode = isset($fields[
'statusCode'
]) ? (int)$fields[
'statusCode'
] :
$this->statusCode
;
23
$this->headers = $fields[
'headers'
] ??
$this->headers
;
24
$this->body = $fields[
'body'
] ??
$this->body
;
25
$this->error = $fields[
'error'
] ??
$this->error
;
26
}
27
}
Bitrix\MessageService\DTO\Response
Definition
response.php:6
Bitrix\MessageService\DTO\Response\$body
$body
Definition
response.php:9
Bitrix\MessageService\DTO\Response\$statusCode
$statusCode
Definition
response.php:7
Bitrix\MessageService\DTO\Response\__construct
__construct(array $fields=null)
Definition
response.php:12
Bitrix\MessageService\DTO\Response\$headers
$headers
Definition
response.php:8
Bitrix\MessageService\DTO\Response\hydrate
hydrate(array $fields)
Definition
response.php:20
Bitrix\MessageService\DTO\Response\$error
$error
Definition
response.php:10
Bitrix\MessageService\DTO
Definition
request.php:3
modules
messageservice
lib
dto
response.php
Создано системой
1.10.0