/
home
/
techb158
/
ileadtechnology.com
/
SSM
/
vendor
/
nexmo
/
client-core
/
src
/
Voice
/
Message
/
/home/techb158/ileadtechnology.com/SSM/vendor/nexmo/client-core/src/Voice/Message
mkdir
upload
Name
Size
Mode
Actions
Callback.php
1805
0644
edit
dl
rm
Message.php
1719
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/SSM/vendor/nexmo/client-core/src/Voice/Message/Callback.php
(1805B)
<?php /** * Nexmo Client Library for PHP * * @copyright Copyright (c) 2016 Nexmo, Inc. (http://nexmo.com) * @license https://github.com/Nexmo/nexmo-php/blob/master/LICENSE.txt MIT License */ namespace Nexmo\Voice\Message; use Nexmo\Client\Callback\CallbackInterface; use Nexmo\Client\Callback\Callback as BaseCallback; class Callback extends BaseCallback implements CallbackInterface { const TIME_FORMAT = 'Y-m-d H:i:s'; protected $expected = array( 'call-id', 'status', 'call-price', 'call-rate', 'call-duration', 'to', 'call-request', 'network-code', ); public function getId() { return $this->data['call-id']; } public function getTo() { return $this->data['to']; } public function getStatus() { return $this->data['status']; } public function getPrice() { return $this->data['call-price']; } public function getRate() { return $this->data['call-rate']; } public function getDuration() { return $this->data['call-duration']; } public function getCreated() { return \DateTime::createFromFormat(self::TIME_FORMAT, $this->data['call-request']); } public function getStart() { if (!isset($this->data['call-start'])) { return null; } return \DateTime::createFromFormat(self::TIME_FORMAT, $this->data['call-start']); } public function getEnd() { if (!isset($this->data['call-end'])) { return null; } return \DateTime::createFromFormat(self::TIME_FORMAT, $this->data['call-end']); } public function getNetwork() { return $this->data['network-code']; } }
Save
cmd:
run