\Applications\EntityAttributes

Holds various attributes like "send me a carbon copy" or "i accept the privacy policy".

Provides some magic function for accessing properties as class members, mirroring these calls to the getter and setter methods.

Summary

Methods
Properties
Constants
__set()
__get()
__isset()
setAcceptedPrivacyPolicy()
getAcceptedPrivacyPolicy()
setSendCarbonCopy()
getSendCarbonCopy()
No public properties found
No constants found
No protected methods found
$privacyPolicy
$carbonCopy
N/A
No private methods found
No private properties found
N/A

Properties

$privacyPolicy

$privacyPolicy : boolean

Flag wether privacy policy is accepted or not.

Type

boolean

$carbonCopy

$carbonCopy : boolean

Flag wether to send a carbon copy or not.

Type

boolean

Methods

__set()

__set(string $property, mixed $value) : mixed

Sets a property through the setter method.

An exception is raised, when no setter method exists.

Parameters

string $property
mixed $value

Throws

\Core\Entity\Exception\OutOfBoundsException

Returns

mixed

__get()

__get(string $property) : mixed

Gets a property through the getter method.

An exception is raised, when no getter method exists.

Parameters

string $property

Throws

\Core\Entity\Exception\OutOfBoundsException

Returns

mixed

__isset()

__isset(string $property) : boolean

Checks if a property exists and has a non-empty value.

If the property is an array, the check will return, if this array has items or not.

Parameters

string $property

Returns

boolean

setAcceptedPrivacyPolicy()

setAcceptedPrivacyPolicy(bool $flag) : self

Sets wether the privacy policy is accepted.

Parameters

bool $flag

Returns

self

getAcceptedPrivacyPolicy()

getAcceptedPrivacyPolicy() : bool

Returns wether the privacy policy is accepted.

Returns

bool

setSendCarbonCopy()

setSendCarbonCopy(mixed $flag) : self

Parameters

mixed $flag

Returns

self

getSendCarbonCopy()

getSendCarbonCopy()