yii\web\Request::getSecurePort PHP Метод

getSecurePort() публичный Метод

Defaults to 443, or the port specified by the server if the current request is secure.
См. также: setSecurePort()
public getSecurePort ( ) : integer
Результат integer port number for secure requests.
    public function getSecurePort()
    {
        if ($this->_securePort === null) {
            $this->_securePort = $this->getIsSecureConnection() && isset($_SERVER['SERVER_PORT']) ? (int) $_SERVER['SERVER_PORT'] : 443;
        }
        return $this->_securePort;
    }