PHP Class SimpleSoftwareIO\QrCode\DataTypes\Email

Inheritance: implements SimpleSoftwareIO\QrCode\DataTypes\DataTypeInterface
Afficher le fichier Open project: simplesoftwareio/simple-qrcode

Protected Properties

Свойство Type Description
$body string The body of an email.
$email string The email address.
$prefix string The prefix of the QrCode.
$subject string The subject of the email.

Méthodes publiques

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

Méthodes protégées

Méthode Description
buildEmailString ( ) * Builds the email string.
isValidEmail ( string $email ) : boolean Ensures an email is valid.
setEmail ( $email ) Sets the email property.
setProperties ( array $arguments ) Sets the objects properties.

Method Details

__toString() public méthode

Returns the correct QrCode format.
public __toString ( ) : string
Résultat string

buildEmailString() protected méthode

* Builds the email string.
protected buildEmailString ( )

create() public méthode

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

isValidEmail() protected méthode

Ensures an email is valid.
protected isValidEmail ( string $email ) : boolean
$email string
Résultat boolean

setEmail() protected méthode

Sets the email property.
protected setEmail ( $email )
$email

setProperties() protected méthode

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

Property Details

$body protected_oe property

The body of an email.
protected string $body
Résultat string

$email protected_oe property

The email address.
protected string $email
Résultat string

$prefix protected_oe property

The prefix of the QrCode.
protected string $prefix
Résultat string

$subject protected_oe property

The subject of the email.
protected string $subject
Résultat string