ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /var/www/html/adimi/application/libraries/nexmo/vendor/nexmo/client/src/Voice/Message/ |
<?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']; } }