Beta version

class Subscriber extends AbstractHuman

A Subscriber is a light User which only can subscribe to newsletter feeds and can be tagged.

Methods

int
getId()

Get entity unique identifier.

setId(int $id)

No description

getCreatedAt()

No description

$this
setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

$this
setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

$this
resetDates()

Set creation and update date to now.

string
getEmail()

No description

$this
setEmail(string $email)

No description

string
getFirstName()

No description

$this
setFirstName(string $firstName)

No description

string
getLastName()

No description

$this
setLastName(string $lastName)

No description

string
getCompany()

No description

$this
setCompany(string $company)

No description

string
getJob()

No description

$this
setJob(string $job)

No description

getBirthday()

No description

$this
setBirthday(DateTime $birthday = null)

No description

mixed
getPhone()

Gets the value of phone.

setPhone(mixed $phone)

Sets the value of phone.

boolean
isHardBounced()

No description

$this
setHardBounced(boolean $hardBounced)

No description

boolean
isSoftBounced()

No description

$this
setSoftBounced(boolean $softBounced)

No description

__construct()

Create a new Subscriber

setNewsletterSubscriber(NewsletterSubscriber $newsletterSubscriber)

No description

mixed
getUnsubscribeToken()

Gets the value of unsubscribeToken.

setUnsubscribeToken(mixed $unsubscribeToken)

Sets the value of unsubscribeToken.

Details

in AbstractEntity at line 51
int getId()

Get entity unique identifier.

Return Value

int

in AbstractEntity at line 60
AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

in AbstractDateTimed at line 53
DateTime getCreatedAt()

Return Value

DateTime

in AbstractDateTimed at line 63
$this setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

$this

in AbstractDateTimed at line 78
DateTime getUpdatedAt()

Return Value

DateTime

in AbstractDateTimed at line 88
$this setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

$this

in AbstractDateTimed at line 98
preUpdate()

in AbstractDateTimed at line 105
prePersist()

in AbstractDateTimed at line 115
$this resetDates()

Set creation and update date to now.

Return Value

$this

in AbstractHuman at line 51
string getEmail()

Return Value

string

in AbstractHuman at line 60
$this setEmail(string $email)

Parameters

string $email

Return Value

$this

in AbstractHuman at line 76
string getFirstName()

Return Value

string

in AbstractHuman at line 85
$this setFirstName(string $firstName)

Parameters

string $firstName

Return Value

$this

in AbstractHuman at line 99
string getLastName()

Return Value

string

in AbstractHuman at line 108
$this setLastName(string $lastName)

Parameters

string $lastName

Return Value

$this

in AbstractHuman at line 128
string getCompany()

Return Value

string

in AbstractHuman at line 137
$this setCompany(string $company)

Parameters

string $company

Return Value

$this

in AbstractHuman at line 151
string getJob()

Return Value

string

in AbstractHuman at line 160
$this setJob(string $job)

Parameters

string $job

Return Value

$this

in AbstractHuman at line 175
DateTime getBirthday()

Return Value

DateTime

in AbstractHuman at line 184
$this setBirthday(DateTime $birthday = null)

Parameters

DateTime $birthday

Return Value

$this

in AbstractHuman at line 196
mixed getPhone()

Gets the value of phone.

Return Value

mixed

in AbstractHuman at line 208
AbstractHuman setPhone(mixed $phone)

Sets the value of phone.

Parameters

mixed $phone the phone

Return Value

AbstractHuman

at line 56
boolean isHardBounced()

Return Value

boolean

at line 65
$this setHardBounced(boolean $hardBounced)

Parameters

boolean $hardBounced

Return Value

$this

at line 79
boolean isSoftBounced()

Return Value

boolean

at line 88
$this setSoftBounced(boolean $softBounced)

Parameters

boolean $softBounced

Return Value

$this

at line 98
__construct()

Create a new Subscriber

at line 110
NewsletterSubscriber getNewsletterSubscriber()

Return Value

NewsletterSubscriber

at line 119
NewsletterSubscriber setNewsletterSubscriber(NewsletterSubscriber $newsletterSubscriber)

Parameters

NewsletterSubscriber $newsletterSubscriber

Return Value

NewsletterSubscriber

at line 130
mixed getUnsubscribeToken()

Gets the value of unsubscribeToken.

Return Value

mixed

at line 142
Subscriber setUnsubscribeToken(mixed $unsubscribeToken)

Sets the value of unsubscribeToken.

Parameters

mixed $unsubscribeToken the unsubscribe token

Return Value

Subscriber