class Subscriber extends AbstractHuman (View source)

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

Properties

protected $id from AbstractEntity
protected DateTime $createdAt from AbstractDateTimed
protected DateTime $updatedAt from AbstractDateTimed
protected $email from AbstractHuman
protected $firstName from AbstractHuman
protected $lastName from AbstractHuman
protected $phone from AbstractHuman
protected $company from AbstractHuman
protected $job from AbstractHuman
protected DateTime $birthday from AbstractHuman
protected $unsubscribeToken
protected $hardBounced
protected $softBounced
protected $newsletterSubscriber

Methods

int
getId()

No description

setId(int $id)

No description

getCreatedAt()

No description

setCreatedAt(DateTime $createdAt)

No description

getUpdatedAt()

No description

setUpdatedAt(DateTime $updatedAt)

No description

preUpdate()

No description

prePersist()

No description

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

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

DateTime getCreatedAt()

Return Value

DateTime

AbstractEntity setCreatedAt(DateTime $createdAt)

Parameters

DateTime $createdAt

Return Value

AbstractEntity

DateTime getUpdatedAt()

Return Value

DateTime

AbstractEntity setUpdatedAt(DateTime $updatedAt)

Parameters

DateTime $updatedAt

Return Value

AbstractEntity

preUpdate()

prePersist()

AbstractEntity resetDates()

Set creation and update date to now.

Return Value

AbstractEntity

string getEmail()

Return Value

string

$this setEmail(string $email)

Parameters

string $email

Return Value

$this

string getFirstName()

Return Value

string

$this setFirstName(string $firstName)

Parameters

string $firstName

Return Value

$this

string getLastName()

Return Value

string

$this setLastName(string $lastName)

Parameters

string $lastName

Return Value

$this

string getCompany()

Return Value

string

$this setCompany(string $company)

Parameters

string $company

Return Value

$this

string getJob()

Return Value

string

$this setJob(string $job)

Parameters

string $job

Return Value

$this

DateTime getBirthday()

Return Value

DateTime

$this setBirthday(DateTime $birthday = null)

Parameters

DateTime $birthday

Return Value

$this

mixed getPhone()

Gets the value of phone.

Return Value

mixed

AbstractHuman setPhone(mixed $phone)

Sets the value of phone.

Parameters

mixed $phone the phone

Return Value

AbstractHuman

boolean isHardBounced()

Return Value

boolean

$this setHardBounced(boolean $hardBounced)

Parameters

boolean $hardBounced

Return Value

$this

boolean isSoftBounced()

Return Value

boolean

$this setSoftBounced(boolean $softBounced)

Parameters

boolean $softBounced

Return Value

$this

__construct()

Create a new Subscriber

NewsletterSubscriber getNewsletterSubscriber()

Return Value

NewsletterSubscriber

NewsletterSubscriber setNewsletterSubscriber(NewsletterSubscriber $newsletterSubscriber)

Parameters

NewsletterSubscriber $newsletterSubscriber

Return Value

NewsletterSubscriber

mixed getUnsubscribeToken()

Gets the value of unsubscribeToken.

Return Value

mixed

Subscriber setUnsubscribeToken(mixed $unsubscribeToken)

Sets the value of unsubscribeToken.

Parameters

mixed $unsubscribeToken the unsubscribe token

Return Value

Subscriber