ÿØÿà 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/Account/ |
<?php namespace Nexmo\Account; use ArrayAccess; use Nexmo\Client\Exception\Exception; use Nexmo\Entity\JsonSerializableInterface; use Nexmo\Entity\JsonUnserializableInterface; class Balance implements JsonSerializableInterface, JsonUnserializableInterface, ArrayAccess { public function __construct($balance, $autoReload) { $this->data['balance'] = $balance; $this->data['auto_reload'] = $autoReload; } public function getBalance() { return $this['balance']; } public function getAutoReload() { return $this['auto_reload']; } public function jsonUnserialize(array $json) { $this->data = [ 'balance' => $json['value'], 'auto_reload' => $json['autoReload'] ]; } function jsonSerialize() { return $this->data; } public function offsetExists($offset) { return isset($this->data[$offset]); } public function offsetGet($offset) { return $this->data[$offset]; } public function offsetSet($offset, $value) { throw new Exception('Balance is read only'); } public function offsetUnset($offset) { throw new Exception('Balance is read only'); } }