PHP Class SimpleSoftwareIO\QrCode\DataTypes\WiFi

Author: SimpleSoftware [email protected]
Inheritance: implements SimpleSoftwareIO\QrCode\DataTypes\DataTypeInterface
Show file Open project: simplesoftwareio/simple-qrcode

Protected Properties

Property Type Description
$encryption string The encryption of the network. WEP or WPA.
$hidden boolean Whether the network is a hidden SSID or not.
$password string The password of the network.
$prefix string The prefix of the QrCode.
$separator string The separator between the variables.
$ssid string The SSID of the WiFi network.

Public Methods

Method Description
__toString ( ) : string Returns the correct QrCode format.
create ( array $arguments ) Generates the DataType Object and sets all of its properties.

Protected Methods

Method Description
buildWifiString ( ) : string Builds the WiFi string.
setProperties ( array $arguments ) Sets the WiFi properties.

Method Details

__toString() public method

Returns the correct QrCode format.
public __toString ( ) : string
return string

buildWifiString() protected method

Builds the WiFi string.
protected buildWifiString ( ) : string
return string

create() public method

Generates the DataType Object and sets all of its properties.
public create ( array $arguments )
$arguments array

setProperties() protected method

Sets the WiFi properties.
protected setProperties ( array $arguments )
$arguments array

Property Details

$encryption protected property

The encryption of the network. WEP or WPA.
protected string $encryption
return string

$hidden protected property

Whether the network is a hidden SSID or not.
protected bool $hidden
return boolean

$password protected property

The password of the network.
protected string $password
return string

$prefix protected property

The prefix of the QrCode.
protected string $prefix
return string

$separator protected property

The separator between the variables.
protected string $separator
return string

$ssid protected property

The SSID of the WiFi network.
protected string $ssid
return string