芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/vonage/client-core/src/Message/Callback/Receipt.php
null], $data); parent::__construct($data); } public function getErrorCode(): int { return (int)$this->data['err-code']; } public function getNetwork(): string { return (string)$this->data['network-code']; } public function getId(): string { return (string)$this->data['messageId']; } public function getReceiptFrom(): string { return (string)$this->data['msisdn']; } public function getTo(): string { return $this->getReceiptFrom(); } public function getReceiptTo(): string { return (string)$this->data['to']; } public function getFrom(): string { return $this->getReceiptTo(); } public function getStatus(): string { return (string)$this->data['status']; } public function getPrice(): string { return (string)$this->data['price']; } public function getTimestamp(): DateTime { $date = DateTime::createFromFormat('ymdHi', $this->data['scts']); if ($date) { return $date; } throw new UnexpectedValueException('could not parse message timestamp'); } public function getSent(): DateTime { $date = DateTime::createFromFormat('Y-m-d H:i:s', $this->data['message-timestamp']); if ($date) { return $date; } throw new UnexpectedValueException('could not parse message timestamp'); } public function getClientRef(): ?string { return $this->data['client-ref']; } }