• Модуль: messageservice
  • Путь к файлу: ~/bitrix/modules/messageservice/lib/dto/response.php
  • Класс: BitrixMessageServiceDTOResponse
  • Вызов: Response::hydrate
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;
}