class AbstractHuman extends AbstractDateTimed (View source)

Abstract entity for any Human-like objects.

This class can be extended for Users, Subscribers, etc.

Properties

protected $id from AbstractEntity
protected DateTime $createdAt from AbstractDateTimed
protected DateTime $updatedAt from AbstractDateTimed
protected $email
protected $firstName
protected $lastName
protected $phone
protected $company
protected $job
protected DateTime $birthday

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.

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