SimpleSoftwareIO\QrCode\DataTypes\WiFi::buildWifiString PHP Method

buildWifiString() protected method

Builds the WiFi string.
protected buildWifiString ( ) : string
return string
    protected function buildWifiString()
    {
        $wifi = $this->prefix;
        if (isset($this->encryption)) {
            $wifi .= 'T:' . $this->encryption . $this->separator;
        }
        if (isset($this->ssid)) {
            $wifi .= 'S:' . $this->ssid . $this->separator;
        }
        if (isset($this->password)) {
            $wifi .= 'P:' . $this->password . $this->separator;
        }
        if (isset($this->hidden)) {
            $wifi .= 'H:' . $this->hidden . $this->separator;
        }
        return $wifi;
    }