芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/vonage/client-core/src/SMS/Webhook/DeliveryReceipt.php
$data * * @throws Exception */ public function __construct(array $data) { foreach (static::$requiredFields as $key) { if (!array_key_exists($key, $data)) { throw new InvalidArgumentException('Delivery Receipt missing required data `' . $key . '`'); } } $this->errCode = filter_var($data['err-code'], FILTER_VALIDATE_INT, FILTER_NULL_ON_FAILURE); $this->messageTimestamp = new DateTimeImmutable($data['message-timestamp']); $this->messageId = $data['messageId']; $this->msisdn = $data['msisdn']; $this->networkCode = $data['network-code']; $this->price = $data['price']; $this->scts = $data['scts']; $this->status = $data['status']; $this->to = $data['to']; $this->apiKey = $data['api-key']; } public function getErrCode(): int { return $this->errCode; } public function getMessageTimestamp(): DateTimeImmutable { return $this->messageTimestamp; } public function getMessageId(): string { return $this->messageId; } public function getMsisdn(): string { return $this->msisdn; } public function getNetworkCode(): string { return $this->networkCode; } public function getPrice(): string { return $this->price; } public function getScts(): string { return $this->scts; } public function getStatus(): string { return $this->status; } public function getTo(): string { return $this->to; } public function getApiKey(): string { return $this->apiKey; } }