芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/vonage/client-core/src/SMS/Webhook/InboundSMS.php
apiKey = $data['api-key'] ?? null; $this->keyword = $data['keyword']; $this->messageId = $data['messageId']; $this->messageTimestamp = new DateTimeImmutable($data['message-timestamp']); $this->msisdn = $data['msisdn']; $this->nonce = $data['nonce'] ?? null; $this->signature = $data['sig'] ?? null; $this->text = $data['text']; $this->to = $data['to']; $this->type = $data['type']; if (array_key_exists('concat', $data)) { $this->concat = true; $this->concatPart = (int)$data['concat-part']; $this->concatRef = $data['concat-ref']; $this->concatTotal = (int)$data['concat-total']; } if ($this->type === 'binary' && array_key_exists('data', $data)) { $this->data = $data['data']; $this->udh = $data['udh']; } if (array_key_exists('timestamp', $data)) { $this->timestamp = (int)$data['timestamp']; } } public function getApiKey(): ?string { return $this->apiKey; } public function getConcat(): bool { return $this->concat; } public function getConcatPart(): ?int { return $this->concatPart; } public function getConcatRef(): ?string { return $this->concatRef; } public function getConcatTotal(): ?int { return $this->concatTotal; } public function getData(): ?string { return $this->data; } public function getKeyword(): string { return $this->keyword; } public function getMessageId(): string { return $this->messageId; } /** * Time the message was accepted and delivery receipt was generated */ public function getMessageTimestamp(): DateTimeImmutable { return $this->messageTimestamp; } public function getMsisdn(): string { return $this->msisdn; } public function getFrom(): string { return $this->msisdn; } public function getNonce(): string { return $this->nonce; } public function getText(): string { return $this->text; } /** * Return the timestamp used for signature verification * If you are looking for the time of message creation, please use * `getMessageTimestamp()` */ public function getTimestamp(): ?int { return $this->timestamp; } public function getTo(): string { return $this->to; } public function getType(): string { return $this->type; } public function getUdh(): ?string { return $this->udh; } public function getSignature(): string { return $this->signature; } }