Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
statusupdate.php
1<?php
2
4
6{
7 public $internalId;
8 public $externalId;
12
13 public function __construct(array $fields = null)
14 {
15 if ($fields !== null)
16 {
17 $this->hydrate($fields);
18 }
19 }
20
21 public function hydrate(array $fields)
22 {
23 $this->internalId = $fields['internalId'] ?? $this->internalId;
24 $this->externalId = $fields['externalId'] ?? $this->externalId;
25 $this->providerStatus = $fields['providerStatus'] ?? $this->providerStatus;
26 $this->deliveryStatus = $fields['deliveryStatus'] ?? $this->deliveryStatus;
27 $this->deliveryError = $fields['deliveryError'] ?? $this->deliveryError;
28 }
29}