Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/vendor/extensions-cpanel/cpanel-development-lib/src/DataEntity/
Upload File :
Current File : //opt/nginxhttpd_/vendor/extensions-cpanel/cpanel-development-lib/src/DataEntity/ProxyPassInfo.php

<?php


namespace O2switch\CpanelLib\DataEntity;


class ProxyPassInfo
{
    /** @var int */
    protected $proxyPassPort;
    /** @var string */
    protected $proxyPassIp;
    /** @var string */
    protected $listenToIp;
    /** @var int */
    protected $listenToPort;
    /** @var int */
    protected $listenToSslPort;
    /** @var string */
    protected $proxyPassProtocol;
    /** @var string|null */
    protected $proxyPassSslProtocol;
    /** @var string */
    protected $proxyPassSslIp;
    /** @var int|null */
    protected $proxyPassSslPort;

    public function preConfigureIpxtender(string $listenToIp, string $originalIp): ProxyPassInfo {
        $this->proxyPassPort = 8081;
        $this->proxyPassIp = $originalIp;
        $this->listenToIp = $listenToIp;
        $this->listenToPort = 80;
        $this->listenToSslPort = 443;
        $this->proxyPassProtocol = 'http';
        $this->proxyPassSslProtocol = 'https';
        $this->proxyPassSslIp = $originalIp;
        $this->proxyPassSslPort = 4430;
        return $this;
    }

    public function preConfigureForwarder(string $listenToIp, string $originalIp) : ProxyPassInfo
    {
        $this->preConfigureIpxtender($listenToIp, $originalIp);
        $this->listenToSslPort = 80;
        return $this;
    }

    public function preConfigureXtremcache(string $listenToIp, string $originalIp) : ProxyPassInfo
    {
        $this->proxyPassPort = 80;
        $this->proxyPassIp = $listenToIp;
        $this->listenToIp = $listenToIp;
        $this->listenToPort = 6081;
        $this->listenToSslPort = 6081;
        $this->proxyPassProtocol = 'http';
        $this->proxyPassSslProtocol = 'http';
        $this->proxyPassSslIp = $listenToIp;
        $this->proxyPassSslPort = 80;
        return $this;
    }

    public function preConfigureLitespeed(string $listenToIp, string $originalIp) : ProxyPassInfo
    {
        $this->proxyPassPort = 80;
        $this->proxyPassIp = $listenToIp;
        $this->listenToIp = $listenToIp;
        $this->listenToPort = 8081;
        $this->listenToSslPort = 8081;
        $this->proxyPassProtocol = 'http';
        $this->proxyPassSslProtocol = 'http';
        $this->proxyPassSslIp = $listenToIp;
        $this->proxyPassSslPort = 80;
        return $this;
    }

    /**
     * @return int
     */
    public function getProxyPassPort(): int
    {
        return $this->proxyPassPort;
    }

    /**
     * @param int $proxyPassPort
     * @return ProxyPassInfo
     */
    public function setProxyPassPort(int $proxyPassPort): ProxyPassInfo
    {
        $this->proxyPassPort = $proxyPassPort;
        return $this;
    }

    /**
     * @return string
     */
    public function getProxyPassIp(): string
    {
        return $this->proxyPassIp;
    }

    /**
     * @param string $proxyPassIp
     * @return ProxyPassInfo
     */
    public function setProxyPassIp(string $proxyPassIp): ProxyPassInfo
    {
        $this->proxyPassIp = $proxyPassIp;
        return $this;
    }

    /**
     * @return string
     */
    public function getListenToIp(): string
    {
        return $this->listenToIp;
    }

    /**
     * @param string $listenToIp
     * @return ProxyPassInfo
     */
    public function setListenToIp(string $listenToIp): ProxyPassInfo
    {
        $this->listenToIp = $listenToIp;
        return $this;
    }

    /**
     * @return int
     */
    public function getListenToPort(): int
    {
        return $this->listenToPort;
    }

    /**
     * @param int $listenToPort
     * @return ProxyPassInfo
     */
    public function setListenToPort(int $listenToPort): ProxyPassInfo
    {
        $this->listenToPort = $listenToPort;
        return $this;
    }

    /**
     * @return int|null
     */
    public function getListenToSslPort(): ?int
    {
        return $this->listenToSslPort;
    }

    /**
     * @param int|null $listenToSslPort
     * @return ProxyPassInfo
     */
    public function setListenToSslPort(?int $listenToSslPort): ProxyPassInfo
    {
        $this->listenToSslPort = $listenToSslPort;
        return $this;
    }

    /**
     * @return string
     */
    public function getProxyPassProtocol(): string
    {
        return $this->proxyPassProtocol;
    }

    /**
     * @param string $proxyPassProtocol
     * @return ProxyPassInfo
     */
    public function setProxyPassProtocol(string $proxyPassProtocol): ProxyPassInfo
    {
        $this->proxyPassProtocol = $proxyPassProtocol;
        return $this;
    }

    /**
     * @return string|null
     */
    public function getProxyPassSslProtocol(): ?string
    {
        return $this->proxyPassSslProtocol;
    }

    /**
     * @param string $proxyPassSslProtocol
     * @return ProxyPassInfo
     */
    public function setProxyPassSslProtocol(string $proxyPassSslProtocol): ProxyPassInfo
    {
        $this->proxyPassSslProtocol = $proxyPassSslProtocol;
        return $this;
    }

    /**
     * @return string
     */
    public function getProxyPassSslIp(): string
    {
        return $this->proxyPassSslIp;
    }

    /**
     * @param string $proxyPassSslIp
     * @return ProxyPassInfo
     */
    public function setProxyPassSslIp(string $proxyPassSslIp): ProxyPassInfo
    {
        $this->proxyPassSslIp = $proxyPassSslIp;
        return $this;
    }

    /**
     * @return string
     */
    public function getProxyPassSslPort(): string
    {
        return $this->proxyPassSslPort;
    }

    /**
     * @param string $proxyPassSslPort
     * @return ProxyPassInfo
     */
    public function setProxyPassSslPort(string $proxyPassSslPort): ProxyPassInfo
    {
        $this->proxyPassSslPort = $proxyPassSslPort;
        return $this;
    }

}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists