File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/messageservice/lib/dto/response.php
Back
<?php namespace Bitrix\MessageService\DTO; class Response { public $statusCode = 0; public $headers = []; public $body = ""; public $error = ""; public function __construct(array $fields = null) { if ($fields !== null) { $this->hydrate($fields); } } public function hydrate(array $fields) { $this->statusCode = isset($fields['statusCode']) ? (int)$fields['statusCode'] : $this->statusCode; $this->headers = $fields['headers'] ?? $this->headers; $this->body = $fields['body'] ?? $this->body; $this->error = $fields['error'] ?? $this->error; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings