class UserFull extends UserFullAbstract

Entity UserFull (linked to DB table user)

Traits

Trait UserAddressTrait
Trait UserAddressTrait
Trait UserAddressTrait
Trait UserBusinessTrait
Trait UserSocialTrait

Constants

ROLE_DEFAULT

Properties

private int $id User unique id from UserLightTrait
private bool $allowUse If the user allows use of its account (GDPR) from UserLightTrait
private string $identifier Unique user identifier from UserLightTrait
private string $email Email for the user from UserLightTrait
private DateTime $creation DateTime for the creation from UserLightTrait
private bool $enabled If account is enabled from UserLightTrait
private string $salt Salt used to hash the password from UserLightTrait
private string $password Password hashed from UserLightTrait
private string $token Token used for sign-up and password recovery from UserLightTrait
private DateTime $passwordRequest DateTime of request for password recovery from UserLightTrait
private string $roles Roles for the user from UserLightTrait
private string $plainPassword Plain password (not strored, used only at sign-up and password chnage times) from UserLightTrait
private string $challenge Answer to the proposed challenge to avoid bots from UserLightTrait
private string $gender Gender for the user from UserDefaultTrait
private string $firstname Firstname for the user from UserDefaultTrait
private string $lastname Lastname for the user from UserDefaultTrait
private string $avatar url used for the Avatar for the user from UserDefaultTrait
private DateTime $latestSignin DateTime of latest sign-in from UserDefaultTrait
private DateTime $latestSignout DateTime of latest sign-out from UserDefaultTrait
private string $locale Locale for the user from UserDefaultTrait
private string $address Address for the user from UserAddressTrait
private string $address2 Second line address for the user from UserAddressTrait
private string $postal Postal code for the user from UserAddressTrait
private string $town Town for the user from UserAddressTrait
private string $country Country for the user from UserAddressTrait
private string $phone Phone for the user from UserAddressTrait
private string $fax Fax for the user from UserAddressTrait
private string $businessType Type of bussiness from UserBusinessTrait
private string $businessName Name for the Business from UserBusinessTrait
private string $businessAddress Address for the Business from UserBusinessTrait
private string $businessAddress2 Second line for the address for the Business from UserBusinessTrait
private string $businessPostal Postal code for the Business from UserBusinessTrait
private string $businessTown Town for the Business from UserBusinessTrait
private string $businessCountry Country for the Business from UserBusinessTrait
private string $businessSiret Siret for the Business from UserBusinessTrait
private string $businessVat TVA number for the Business from UserBusinessTrait
private string $businessPhone Phone number for the Business from UserBusinessTrait
private string $businessFax Fax number for the Business from UserBusinessTrait
private string $socialNetwork Social network for the user from UserSocialTrait
private string $socialId Social id for the user from UserSocialTrait
private string $socialToken Social token for the user from UserSocialTrait
private string $socialPicture Social picture url for the user from UserSocialTrait

Methods

eraseCredentials()

{@inheritdoc}

isAccountNonExpired()

{@inheritdoc}

isAccountNonLocked()

{@inheritdoc}

isCredentialsNonExpired()

{@inheritdoc}

isEnabled()

{@inheritdoc}

string
serialize()

Serializes the user

array
unserialize($serialized)

Unserialize the user

bool
hasRole(string|null $role)

Check if the user has the specified role

addRole(string|null $role)

Adds the role to the user

deleteRole(string|null $role)

Deletes the role to the user

setRoles(array $roles)

Set roles

array
getRoles()

Get roles

array
toArray()

Converts the entity in an array

int|null
getId()

Get id

string|null
getUsername()

Get username Kept for compatibility, returns email value as specified in Symfony docs

setAllowUse(bool $allowUse)

Set allowUse

bool
getAllowUse()

Get allowUse

setIdentifier(string|null $identifier)

Set identifier

string|null
getIdentifier()

Get identifier

setEmail(string|null $email)

Set email

string|null
getEmail()

Get email

setCreation(DateTimeInterface|null $creation)

Set creation

getCreation()

Get creation

setEnabled(bool $enabled)

Set enabled

bool
getEnabled()

Get enabled

setSalt(string|null $salt)

Set salt

string|null
getSalt()

Get salt

setPassword(string|null $password)

Set password

string|null
getPassword()

Get password

setToken(string|null $token)

Set token

string|null
getToken()

Get token

setPasswordRequest(DateTimeInterface|null $passwordRequest)

Set passwordRequest

getPasswordRequest()

Get passwordRequest

setPlainPassword(string|null $plainPassword)

Set plainPassword

string|null
getPlainPassword()

Get plainPassword

setChallenge(string|null $challenge)

Set challenge

string|null
getChallenge()

Get challenge

setGender(string|null $gender)

Set gender

string|null
getGender()

Get gender

setFirstname(string|null $firstname)

Set firstname

string|null
getFirstname()

Get firstname

setLastname(string|null $lastname)

Set lastname

string|null
getLastname()

Get lastname

setAvatar(string|null $avatar)

Set avatar

string|null
getAvatar()

Get avatar

setLatestSignin(DateTimeInterface|null $latestSignin)

Set latestSignin

getLatestSignin()

Get latestSignin

setLatestSignout(DateTimeInterface|null $latestSignout)

Set latestSignout

setLocale(string|null $locale)

Set locale

string|null
getLocale()

Get locale

setAddress(string|null $address)

Set address

string|null
getAddress()

Get address

setAddress2(string|null $address2)

Set address2

string|null
getAddress2()

Get address2

setPostal(string|null $postal)

Set postal

string|null
getPostal()

Get postal

setTown(string|null $town)

Set town

string|null
getTown()

Get town

setCountry(string|null $country)

Set country

string|null
getCountry()

Get country

setPhone(string|null $phone)

Set phone

object|null
getPhone()

Get phone

setFax(string|null $fax)

Set fax

object|null
getFax()

Get fax

setBusinessType(string|null $businessType)

Set businessType

string|null
getBusinessType()

Get businessType

setBusinessName(string|null $businessName)

Set businessName

string|null
getBusinessName()

Get businessName

setBusinessAddress(string|null $businessAddress)

Set businessAddress

string|null
getBusinessAddress()

Get businessAddress

setBusinessAddress2(string|null $businessAddress2)

Set businessAddress2

string|null
getBusinessAddress2()

Get businessAddress2

setBusinessPostal(string|null $businessPostal)

Set businessPostal

string|null
getBusinessPostal()

Get businessPostal

setBusinessTown(string|null $businessTown)

Set businessTown

string|null
getBusinessTown()

Get businessTown

setBusinessCountry(string|null $businessCountry)

Set businessCountry

string|null
getBusinessCountry()

Get businessCountry

setBusinessSiret(string|null $businessSiret)

Set businessSiret

string|null
getBusinessSiret()

Get businessSiret

setBusinessVat(string|null $businessVat)

Set businessVat

string|null
getBusinessVat()

Get businessVat

setBusinessPhone(string|null $businessPhone)

Set businessPhone

object|null
getBusinessPhone()

Get businessPhone

setBusinessFax(string|null $businessFax)

Set businessFax

object|null
getBusinessFax()

Get businessFax

setSocialNetwork(string|null $socialNetwork)

Set socialNetwork

string|null
getSocialNetwork()

Get socialNetwork

setSocialId(string|null $socialId)

Set socialId

string|null
getSocialId()

Get socialId

setSocialToken(string|null $socialToken)

Set socialToken

string|null
getSocialToken()

Get socialToken

setSocialPicture(string|null $socialPicture)

Set socialPicture

string|null
getSocialPicture()

Get socialPicture

Details

in UserLightTrait at line 144
eraseCredentials()

{@inheritdoc}

in UserLightTrait at line 151
isAccountNonExpired()

{@inheritdoc}

in UserLightTrait at line 159
isAccountNonLocked()

{@inheritdoc}

in UserLightTrait at line 167
isCredentialsNonExpired()

{@inheritdoc}

in UserLightTrait at line 175
isEnabled()

{@inheritdoc}

in UserLightTrait at line 184
string serialize()

Serializes the user

Return Value

string

in UserLightTrait at line 199
array unserialize($serialized)

Unserialize the user

Parameters

$serialized

Return Value

array

in UserLightTrait at line 215
bool hasRole(string|null $role)

Check if the user has the specified role

Parameters

string|null $role

Return Value

bool

in UserLightTrait at line 223
addRole(string|null $role)

Adds the role to the user

Parameters

string|null $role

in UserLightTrait at line 250
deleteRole(string|null $role)

Deletes the role to the user

Parameters

string|null $role

in UserLightTrait at line 275
setRoles(array $roles)

Set roles

Parameters

array $roles Roles

in UserLightTrait at line 290
array getRoles()

Get roles

Return Value

array

in UserLightTrait at line 312
array toArray()

Converts the entity in an array

Return Value

array

in UserLightTrait at line 338
int|null getId()

Get id

Return Value

int|null

in UserLightTrait at line 348
string|null getUsername()

Get username Kept for compatibility, returns email value as specified in Symfony docs

Return Value

string|null

in UserLightTrait at line 358
UserLight setAllowUse(bool $allowUse)

Set allowUse

Parameters

bool $allowUse If use is allowed

Return Value

UserLight

in UserLightTrait at line 368
bool getAllowUse()

Get allowUse

Return Value

bool

in UserLightTrait at line 378
UserLight setIdentifier(string|null $identifier)

Set identifier

Parameters

string|null $identifier Identifier

Return Value

UserLight

in UserLightTrait at line 388
string|null getIdentifier()

Get identifier

Return Value

string|null

in UserLightTrait at line 398
UserLight setEmail(string|null $email)

Set email

Parameters

string|null $email Email

Return Value

UserLight

in UserLightTrait at line 408
string|null getEmail()

Get email

Return Value

string|null

in UserLightTrait at line 418
UserLight setCreation(DateTimeInterface|null $creation)

Set creation

Parameters

DateTimeInterface|null $creation Datetime for creation

Return Value

UserLight

in UserLightTrait at line 428
DateTimeInterface|null getCreation()

Get creation

Return Value

DateTimeInterface|null

in UserLightTrait at line 438
UserLight setEnabled(bool $enabled)

Set enabled

Parameters

bool $enabled If enabled

Return Value

UserLight

in UserLightTrait at line 448
bool getEnabled()

Get enabled

Return Value

bool

in UserLightTrait at line 458
UserLight setSalt(string|null $salt)

Set salt

Parameters

string|null $salt Salt

Return Value

UserLight

in UserLightTrait at line 468
string|null getSalt()

Get salt

Return Value

string|null

in UserLightTrait at line 478
UserLight setPassword(string|null $password)

Set password

Parameters

string|null $password Password

Return Value

UserLight

in UserLightTrait at line 488
string|null getPassword()

Get password

Return Value

string|null

in UserLightTrait at line 498
UserLight setToken(string|null $token)

Set token

Parameters

string|null $token Token

Return Value

UserLight

in UserLightTrait at line 508
string|null getToken()

Get token

Return Value

string|null

in UserLightTrait at line 518
UserLight setPasswordRequest(DateTimeInterface|null $passwordRequest)

Set passwordRequest

Parameters

DateTimeInterface|null $passwordRequest Datetime for password request

Return Value

UserLight

in UserLightTrait at line 528
DateTimeInterface|null getPasswordRequest()

Get passwordRequest

Return Value

DateTimeInterface|null

in UserLightTrait at line 538
UserLight setPlainPassword(string|null $plainPassword)

Set plainPassword

Parameters

string|null $plainPassword Plain password (not stored)

Return Value

UserLight

in UserLightTrait at line 548
string|null getPlainPassword()

Get plainPassword

Return Value

string|null

in UserLightTrait at line 558
UserLight setChallenge(string|null $challenge)

Set challenge

Parameters

string|null $challenge Challenge

Return Value

UserLight

in UserLightTrait at line 568
string|null getChallenge()

Get challenge

Return Value

string|null

in UserDefaultTrait at line 104
UserLight setGender(string|null $gender)

Set gender

Parameters

string|null $gender Gender

Return Value

UserLight

in UserDefaultTrait at line 114
string|null getGender()

Get gender

Return Value

string|null

in UserDefaultTrait at line 124
UserLight setFirstname(string|null $firstname)

Set firstname

Parameters

string|null $firstname Firstname

Return Value

UserLight

in UserDefaultTrait at line 134
string|null getFirstname()

Get firstname

Return Value

string|null

in UserDefaultTrait at line 144
UserLight setLastname(string|null $lastname)

Set lastname

Parameters

string|null $lastname Lastname

Return Value

UserLight

in UserDefaultTrait at line 154
string|null getLastname()

Get lastname

Return Value

string|null

in UserDefaultTrait at line 164
UserLight setAvatar(string|null $avatar)

Set avatar

Parameters

string|null $avatar Avatar url

Return Value

UserLight

in UserDefaultTrait at line 174
string|null getAvatar()

Get avatar

Return Value

string|null

in UserDefaultTrait at line 184
UserLight setLatestSignin(DateTimeInterface|null $latestSignin)

Set latestSignin

Parameters

DateTimeInterface|null $latestSignin Datetime for latest signin

Return Value

UserLight

in UserDefaultTrait at line 194
DateTimeInterface|null getLatestSignin()

Get latestSignin

Return Value

DateTimeInterface|null

in UserDefaultTrait at line 204
UserLight setLatestSignout(DateTimeInterface|null $latestSignout)

Set latestSignout

Parameters

DateTimeInterface|null $latestSignout Datetime for latest signout

Return Value

UserLight

in UserDefaultTrait at line 214
DateTimeInterface getLatestSignout()

Get latestSignout

Return Value

DateTimeInterface

in UserDefaultTrait at line 224
UserLight setLocale(string|null $locale)

Set locale

Parameters

string|null $locale Locale

Return Value

UserLight

in UserDefaultTrait at line 234
string|null getLocale()

Get locale

Return Value

string|null

in UserAddressTrait at line 88
UserLight setAddress(string|null $address)

Set address

Parameters

string|null $address Address

Return Value

UserLight

in UserAddressTrait at line 98
string|null getAddress()

Get address

Return Value

string|null

in UserAddressTrait at line 108
UserLight setAddress2(string|null $address2)

Set address2

Parameters

string|null $address2 Address 2

Return Value

UserLight

in UserAddressTrait at line 118
string|null getAddress2()

Get address2

Return Value

string|null

in UserAddressTrait at line 128
UserLight setPostal(string|null $postal)

Set postal

Parameters

string|null $postal Postal code

Return Value

UserLight

in UserAddressTrait at line 138
string|null getPostal()

Get postal

Return Value

string|null

in UserAddressTrait at line 148
UserLight setTown(string|null $town)

Set town

Parameters

string|null $town Town

Return Value

UserLight

in UserAddressTrait at line 158
string|null getTown()

Get town

Return Value

string|null

in UserAddressTrait at line 168
UserLight setCountry(string|null $country)

Set country

Parameters

string|null $country Country

Return Value

UserLight

in UserAddressTrait at line 178
string|null getCountry()

Get country

Return Value

string|null

in UserAddressTrait at line 188
UserLight setPhone(string|null $phone)

Set phone

Parameters

string|null $phone Phone

Return Value

UserLight

in UserAddressTrait at line 198
object|null getPhone()

Get phone

Return Value

object|null

in UserAddressTrait at line 208
UserLight setFax(string|null $fax)

Set fax

Parameters

string|null $fax Fax

Return Value

UserLight

in UserAddressTrait at line 218
object|null getFax()

Get fax

Return Value

object|null

in UserBusinessTrait at line 134
UserLight setBusinessType(string|null $businessType)

Set businessType

Parameters

string|null $businessType Business type

Return Value

UserLight

in UserBusinessTrait at line 144
string|null getBusinessType()

Get businessType

Return Value

string|null

in UserBusinessTrait at line 154
UserLight setBusinessName(string|null $businessName)

Set businessName

Parameters

string|null $businessName Business name

Return Value

UserLight

in UserBusinessTrait at line 164
string|null getBusinessName()

Get businessName

Return Value

string|null

in UserBusinessTrait at line 174
UserLight setBusinessAddress(string|null $businessAddress)

Set businessAddress

Parameters

string|null $businessAddress Business address

Return Value

UserLight

in UserBusinessTrait at line 184
string|null getBusinessAddress()

Get businessAddress

Return Value

string|null

in UserBusinessTrait at line 194
UserLight setBusinessAddress2(string|null $businessAddress2)

Set businessAddress2

Parameters

string|null $businessAddress2 Business Address 2

Return Value

UserLight

in UserBusinessTrait at line 204
string|null getBusinessAddress2()

Get businessAddress2

Return Value

string|null

in UserBusinessTrait at line 214
UserLight setBusinessPostal(string|null $businessPostal)

Set businessPostal

Parameters

string|null $businessPostal Business postal code

Return Value

UserLight

in UserBusinessTrait at line 224
string|null getBusinessPostal()

Get businessPostal

Return Value

string|null

in UserBusinessTrait at line 234
UserLight setBusinessTown(string|null $businessTown)

Set businessTown

Parameters

string|null $businessTown Business town

Return Value

UserLight

in UserBusinessTrait at line 244
string|null getBusinessTown()

Get businessTown

Return Value

string|null

in UserBusinessTrait at line 254
UserLight setBusinessCountry(string|null $businessCountry)

Set businessCountry

Parameters

string|null $businessCountry Business country

Return Value

UserLight

in UserBusinessTrait at line 264
string|null getBusinessCountry()

Get businessCountry

Return Value

string|null

in UserBusinessTrait at line 274
UserLight setBusinessSiret(string|null $businessSiret)

Set businessSiret

Parameters

string|null $businessSiret Business siret number

Return Value

UserLight

in UserBusinessTrait at line 284
string|null getBusinessSiret()

Get businessSiret

Return Value

string|null

in UserBusinessTrait at line 294
UserLight setBusinessVat(string|null $businessVat)

Set businessVat

Parameters

string|null $businessVat Business vat number

Return Value

UserLight

in UserBusinessTrait at line 304
string|null getBusinessVat()

Get businessVat

Return Value

string|null

in UserBusinessTrait at line 314
UserLight setBusinessPhone(string|null $businessPhone)

Set businessPhone

Parameters

string|null $businessPhone Business phone

Return Value

UserLight

in UserBusinessTrait at line 324
object|null getBusinessPhone()

Get businessPhone

Return Value

object|null

in UserBusinessTrait at line 334
UserLight setBusinessFax(string|null $businessFax)

Set businessFax

Parameters

string|null $businessFax Business fax

Return Value

UserLight

in UserBusinessTrait at line 344
object|null getBusinessFax()

Get businessFax

Return Value

object|null

in UserSocialTrait at line 61
UserLight setSocialNetwork(string|null $socialNetwork)

Set socialNetwork

Parameters

string|null $socialNetwork Social Network

Return Value

UserLight

in UserSocialTrait at line 71
string|null getSocialNetwork()

Get socialNetwork

Return Value

string|null

in UserSocialTrait at line 81
UserLight setSocialId(string|null $socialId)

Set socialId

Parameters

string|null $socialId Social id

Return Value

UserLight

in UserSocialTrait at line 91
string|null getSocialId()

Get socialId

Return Value

string|null

in UserSocialTrait at line 101
UserLight setSocialToken(string|null $socialToken)

Set socialToken

Parameters

string|null $socialToken Social token

Return Value

UserLight

in UserSocialTrait at line 111
string|null getSocialToken()

Get socialToken

Return Value

string|null

in UserSocialTrait at line 121
UserLight setSocialPicture(string|null $socialPicture)

Set socialPicture

Parameters

string|null $socialPicture Social picture

Return Value

UserLight

in UserSocialTrait at line 131
string|null getSocialPicture()

Get socialPicture

Return Value

string|null