File "Ip.php"
Full path: /home/kosmetik/public_html/wp-content/plugins/really-simple-ssl/lets-encrypt/vendor/plesk/api-php-lib/src/Api/Operator/Ip.php
File
size: 604 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
// Copyright 1999-2020. Plesk International GmbH.
namespace PleskX\Api\Operator;
defined('ABSPATH') or die();
use PleskX\Api\Struct\Ip as Struct;
class Ip extends \PleskX\Api\Operator
{
/**
* @return Struct\Info[]
*/
public function get()
{
$ips = [];
$packet = $this->_client->getPacket();
$packet->addChild($this->_wrapperTag)->addChild('get');
$response = $this->_client->request($packet);
foreach ($response->addresses->ip_info as $ipInfo) {
$ips[] = new Struct\Info($ipInfo);
}
return $ips;
}
}