Beta version

abstract class AbstractHuman extends AbstractDateTimed

Abstract entity for any Human-like objects.

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

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.

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

at line 51
string getEmail()

Return Value

string

at line 60
$this setEmail(string $email)

Parameters

string $email

Return Value

$this

at line 76
string getFirstName()

Return Value

string

at line 85
$this setFirstName(string $firstName)

Parameters

string $firstName

Return Value

$this

at line 99
string getLastName()

Return Value

string

at line 108
$this setLastName(string $lastName)

Parameters

string $lastName

Return Value

$this

at line 128
string getCompany()

Return Value

string

at line 137
$this setCompany(string $company)

Parameters

string $company

Return Value

$this

at line 151
string getJob()

Return Value

string

at line 160
$this setJob(string $job)

Parameters

string $job

Return Value

$this

at line 175
DateTime getBirthday()

Return Value

DateTime

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

Parameters

DateTime $birthday

Return Value

$this

at line 196
mixed getPhone()

Gets the value of phone.

Return Value

mixed

at line 208
AbstractHuman setPhone(mixed $phone)

Sets the value of phone.

Parameters

mixed $phone the phone

Return Value

AbstractHuman