PHP Class SimpleSoftwareIO\QrCode\DataTypes\Email

Inheritance: implements SimpleSoftwareIO\QrCode\DataTypes\DataTypeInterface
Show file Open project: simplesoftwareio/simple-qrcode

Protected Properties

Property 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.

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
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 method

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

buildEmailString() protected method

* Builds the email string.
protected buildEmailString ( )

create() public method

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

isValidEmail() protected method

Ensures an email is valid.
protected isValidEmail ( string $email ) : boolean
$email string
return boolean

setEmail() protected method

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

setProperties() protected method

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

Property Details

$body protected property

The body of an email.
protected string $body
return string

$email protected property

The email address.
protected string $email
return string

$prefix protected property

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

$subject protected property

The subject of the email.
protected string $subject
return string