芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/vonage/client-core/src/Voice/Webhook/Event.php
from = $event['from'] ?? null; $this->to = $event['to']; $this->uuid = $event['uuid'] ?? $event['call_uuid']; $this->conversationUuid = $event['conversation_uuid']; $this->status = $event['status']; $this->direction = $event['direction']; $this->timestamp = new DateTimeImmutable($event['timestamp']); $this->rate = $event['rate'] ?? null; $this->network = $event['network'] ?? null; $this->duration = $event['duration'] ?? null; $this->price = $event['price'] ?? null; if (array_key_exists('start_time', $event) && !is_null($event['start_time'])) { $this->startTime = new DateTimeImmutable($event['start_time']); } if (array_key_exists('end_time', $event)) { $this->endTime = new DateTimeImmutable($event['end_time']); } $this->detail = $event['detail'] ?? null; } public function getConversationUuid(): string { return $this->conversationUuid; } /** * Returns additional details on the event, if available * Not all events contain this field, so it may be null. */ public function getDetail(): ?string { return $this->detail; } public function getDirection(): string { return $this->direction; } public function getFrom(): ?string { return $this->from; } public function getStatus(): string { return $this->status; } public function getTimestamp(): DateTimeImmutable { return $this->timestamp; } public function getTo(): string { return $this->to; } public function getUuid(): string { return $this->uuid; } public function getNetwork(): ?string { return $this->network; } public function getRate(): ?string { return $this->rate; } public function getStartTime(): ?DateTimeImmutable { return $this->startTime; } public function getEndTime(): ?DateTimeImmutable { return $this->endTime; } public function getDuration(): ?string { return $this->duration; } public function getPrice(): ?string { return $this->price; } }