%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/o91-api/vendor/nexmo/client/src/Insights/
Upload File :
Create Path :
Current File : /var/www/html/o91-api/vendor/nexmo/client/src/Insights/Basic.php

<?php

namespace Nexmo\Insights;

use Nexmo\Client\Exception\Exception;
use Nexmo\Entity\JsonUnserializableInterface;

class Basic implements \JsonSerializable, JsonUnserializableInterface, \ArrayAccess {

    protected $data = [];

    public function __construct($number)
    {
        $this->data['national_format_number'] = $number;
    }

    /**
     * @return string
     */
    public function getRequestId()
    {
        return $this['request_id'];
    }

    /**
     * @return string
     */
    public function getNationalFormatNumber()
    {
        return $this['national_format_number'];
    }

    /**
     * @return string
     */
    public function getInternationalFormatNumber()
    {
        return $this['international_format_number'];
    }

    /**
     * @return string
     */
    public function getCountryCode()
    {
        return $this['country_code'];
    }

    /**
     * @return string
     */
    public function getCountryCodeISO3()
    {
        return $this['country_code_iso3'];
    }

    /**
     * @return string
     */
    public function getCountryName()
    {
        return $this['country_name'];
    }

    /**
     * @return integer
     */
    public function getCountryPrefix()
    {
        return $this['country_prefix'];
    }

    public function jsonSerialize()
    {
        return $this->data;
    }

    public function jsonUnserialize(array $json)
    {
        $this->data = $json;
    }

    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('Number insights results are read only');
    }

    public function offsetUnset($offset)
    {
        throw new Exception('Number insights results are read only');
    }
}

Zerion Mini Shell 1.0