User
in package
implements
UserInterface, PasswordAuthenticatedUserInterface
Attributes
- #[Entity]
- $repositoryClass: \App\Repository\UserRepository::class
- #[UniqueConstraint]
- $name: 'UNIQ_IDENTIFIER_EMAIL'
- $fields: ['email']
- #[UniqueEntity]
- $fields: ['email']
- $message: 'Un compte existe déjà avec cet email.'
- #[UniqueEntity]
- $fields: ['businessName']
- $message: 'Une entreprise existe déjà avec ce nom.'
Table of Contents
Interfaces
- UserInterface
- PasswordAuthenticatedUserInterface
Properties
- $activitySectors : Collection<int, ActivitySector>
- $address : string|null
- $businesses : Collection<int, Business>
- $businessName : string|null
- $businessType : BusinessType|null
- $created_at : DateTimeImmutable|null
- $email : string|null
- $id : int|null
- $IdentityDocumentOfManager : string|null
- $isVerified : bool|null
- $name : string|null
- $parent : self|null
- $password : string
- $payments : Collection<int, Payment>
- $phone_number : string|null
- $phoneIndex : string|null
- $profil : string|null
- $proofOfDomiciliation : string|null
- $rccm : string|null
- $ResetToken : string|null
- $ResetTokenExpiresAt : DateTimeInterface|null
- $roles : array<int, string>
- $selectedSaleTypes : array<string|int, mixed>|null
- $statusSubscription : string|null
- $subscriptions : Collection<int, Subscription>
- $trialStartDate : DateTimeInterface|null
- $updated_at : DateTimeImmutable|null
- $users : Collection<int, self>
- $verificationToken : string|null
- $verificationTokenExpiresAt : DateTimeInterface|null
Methods
- __construct() : mixed
- addActivitySector() : static
- addBusiness() : static
- addPayment() : static
- addSubscription() : static
- addUser() : static
- eraseCredentials() : void
- getActivitySectors() : Collection<int, ActivitySector>
- getAddress() : string|null
- getBusinesses() : Collection<int, Business>
- getBusinessName() : string|null
- getBusinessType() : BusinessType|null
- getCreatedAt() : DateTimeImmutable|null
- getCurrentPricingName() : string
- getEmail() : string|null
- getId() : int|null
- getIdentityDocumentOfManager() : string|null
- getName() : string|null
- getParent() : self|null
- getPassword() : string
- getPayments() : Collection<int, Payment>
- getPhoneIndex() : string|null
- getPhoneNumber() : string|null
- getProfil() : string|null
- getProofOfDomiciliation() : string|null
- getRccm() : string|null
- getResetToken() : string|null
- getResetTokenExpiresAt() : DateTimeInterface|null
- getRoles() : array<int, string>
- getSelectedSaleTypes() : array<string|int, mixed>|null
- getStatusSubscription() : string|null
- getSubscriptions() : Collection<int, Subscription>
- getTrialEndDate() : DateTimeInterface|null
- getTrialStartDate() : DateTimeInterface|null
- getUpdatedAt() : DateTimeImmutable|null
- getUserIdentifier() : string
- A visual identifier that represents this user.
- getUsers() : Collection<int, self>
- getVerificationToken() : string|null
- getVerificationTokenExpiresAt() : DateTimeInterface|null
- hasActiveSubscription() : bool
- isStaff() : bool
- isTrialActive() : bool
- isVerified() : bool|null
- removeActivitySector() : static
- removeBusiness() : static
- removePayment() : static
- removeSubscription() : static
- removeUser() : static
- setAddress() : static
- setBusinessName() : static
- setBusinessType() : static
- setCreatedAt() : static
- setEmail() : static
- setIdentityDocumentOfManager() : static
- setName() : static
- setParent() : static
- setPassword() : static
- setPhoneIndex() : static
- setPhoneNumber() : static
- setProfil() : static
- setProofOfDomiciliation() : static
- setRccm() : static
- setResetToken() : static
- setResetTokenExpiresAt() : static
- setRoles() : static
- setSelectedSaleTypes() : static
- setStatusSubscription() : static
- setTrialStartDate() : static
- setUpdatedAt() : static
- setVerificationToken() : static
- setVerificationTokenExpiresAt() : static
- setVerified() : static
Properties
$activitySectors
private
Collection<int, ActivitySector>
$activitySectors
Attributes
- #[ManyToMany]
- $targetEntity: \App\Entity\ActivitySector::class
- $inversedBy: 'users'
$address
private
string|null
$address
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$businesses
private
Collection<int, Business>
$businesses
Attributes
- #[OneToMany]
- $targetEntity: \App\Entity\Business::class
- $mappedBy: 'user'
$businessName
private
string|null
$businessName
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$businessType
private
BusinessType|null
$businessType
= null
Attributes
- #[ManyToOne]
- $inversedBy: 'users'
$created_at
private
DateTimeImmutable|null
$created_at
= null
Attributes
- #[Column]
- $nullable: true
private
string|null
$email
= null
Attributes
- #[Column]
- $length: 180
- #[Groups]
- ['user:read', 'user:write', 'pricing:read']
$id
private
int|null
$id
= null
Attributes
- #[Column]
- #[GeneratedValue]
- #[Id]
$IdentityDocumentOfManager
private
string|null
$IdentityDocumentOfManager
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$isVerified
private
bool|null
$isVerified
= null
Attributes
- #[Column]
- $nullable: true
$name
private
string|null
$name
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
- #[Groups]
- ['user:read', 'user:write', 'pricing:read']
$parent
private
self|null
$parent
= null
Attributes
- #[Groups]
- ['user:read', 'pricing:read']
- #[ManyToOne]
- $targetEntity: self::class
- $inversedBy: 'users'
$password
private
string
$password
= ''
The hashed password
Attributes
- #[Column]
- #[Groups]
- ['user:write']
$payments
private
Collection<int, Payment>
$payments
Attributes
- #[OneToMany]
- $targetEntity: \App\Entity\Payment::class
- $mappedBy: 'user'
$phone_number
private
string|null
$phone_number
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$phoneIndex
private
string|null
$phoneIndex
= '+224'
Attributes
- #[Column]
- $length: 10
- $nullable: true
$profil
private
string|null
$profil
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
- #[Groups]
- ['user:read', 'user:write']
$proofOfDomiciliation
private
string|null
$proofOfDomiciliation
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$rccm
private
string|null
$rccm
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$ResetToken
private
string|null
$ResetToken
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$ResetTokenExpiresAt
private
DateTimeInterface|null
$ResetTokenExpiresAt
= null
Attributes
- #[Column]
- $type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE
- $nullable: true
$roles
private
array<int, string>
$roles
= []
The user roles
Attributes
- #[Column]
- #[Groups]
- ['user:read', 'user:write', 'pricing:read']
$selectedSaleTypes
private
array<string|int, mixed>|null
$selectedSaleTypes
= null
Attributes
- #[Column]
- $nullable: true
$statusSubscription
private
string|null
$statusSubscription
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$subscriptions
private
Collection<int, Subscription>
$subscriptions
Attributes
- #[OneToMany]
- $targetEntity: \App\Entity\Subscription::class
- $mappedBy: 'user'
- $orphanRemoval: true
$trialStartDate
private
DateTimeInterface|null
$trialStartDate
= null
Attributes
- #[Column]
- $type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE
- $nullable: true
$updated_at
private
DateTimeImmutable|null
$updated_at
= null
Attributes
- #[Column]
- $nullable: true
$users
private
Collection<int, self>
$users
Attributes
- #[OneToMany]
- $targetEntity: self::class
- $mappedBy: 'parent'
$verificationToken
private
string|null
$verificationToken
= null
Attributes
- #[Column]
- $length: 255
- $nullable: true
$verificationTokenExpiresAt
private
DateTimeInterface|null
$verificationTokenExpiresAt
= null
Attributes
- #[Column]
- $type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE
- $nullable: true
Methods
__construct()
public
__construct() : mixed
addActivitySector()
public
addActivitySector(ActivitySector $activitySector) : static
Parameters
- $activitySector : ActivitySector
Return values
staticaddBusiness()
public
addBusiness(Business $business) : static
Parameters
- $business : Business
Return values
staticaddPayment()
public
addPayment(Payment $payment) : static
Parameters
- $payment : Payment
Return values
staticaddSubscription()
public
addSubscription(Subscription $subscription) : static
Parameters
- $subscription : Subscription
Return values
staticaddUser()
public
addUser(self $user) : static
Parameters
- $user : self
Return values
staticeraseCredentials()
public
eraseCredentials() : void
Tags
getActivitySectors()
public
getActivitySectors() : Collection<int, ActivitySector>
Return values
Collection<int, ActivitySector>getAddress()
public
getAddress() : string|null
Return values
string|nullgetBusinesses()
public
getBusinesses() : Collection<int, Business>
Return values
Collection<int, Business>getBusinessName()
public
getBusinessName() : string|null
Return values
string|nullgetBusinessType()
public
getBusinessType() : BusinessType|null
Return values
BusinessType|nullgetCreatedAt()
public
getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetCurrentPricingName()
public
getCurrentPricingName() : string
Return values
stringgetEmail()
public
getEmail() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetIdentityDocumentOfManager()
public
getIdentityDocumentOfManager() : string|null
Return values
string|nullgetName()
public
getName() : string|null
Return values
string|nullgetParent()
public
getParent() : self|null
Return values
self|nullgetPassword()
public
getPassword() : string
Tags
Return values
stringgetPayments()
public
getPayments() : Collection<int, Payment>
Return values
Collection<int, Payment>getPhoneIndex()
public
getPhoneIndex() : string|null
Return values
string|nullgetPhoneNumber()
public
getPhoneNumber() : string|null
Return values
string|nullgetProfil()
public
getProfil() : string|null
Return values
string|nullgetProofOfDomiciliation()
public
getProofOfDomiciliation() : string|null
Return values
string|nullgetRccm()
public
getRccm() : string|null
Return values
string|nullgetResetToken()
public
getResetToken() : string|null
Return values
string|nullgetResetTokenExpiresAt()
public
getResetTokenExpiresAt() : DateTimeInterface|null
Return values
DateTimeInterface|nullgetRoles()
public
getRoles() : array<int, string>
Tags
Return values
array<int, string>getSelectedSaleTypes()
public
getSelectedSaleTypes() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetStatusSubscription()
public
getStatusSubscription() : string|null
Return values
string|nullgetSubscriptions()
public
getSubscriptions() : Collection<int, Subscription>
Return values
Collection<int, Subscription>getTrialEndDate()
public
getTrialEndDate() : DateTimeInterface|null
Return values
DateTimeInterface|nullgetTrialStartDate()
public
getTrialStartDate() : DateTimeInterface|null
Return values
DateTimeInterface|nullgetUpdatedAt()
public
getUpdatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|nullgetUserIdentifier()
A visual identifier that represents this user.
public
getUserIdentifier() : string
Tags
Return values
stringgetUsers()
public
getUsers() : Collection<int, self>
Return values
Collection<int, self>getVerificationToken()
public
getVerificationToken() : string|null
Return values
string|nullgetVerificationTokenExpiresAt()
public
getVerificationTokenExpiresAt() : DateTimeInterface|null
Return values
DateTimeInterface|nullhasActiveSubscription()
public
hasActiveSubscription() : bool
Return values
boolisStaff()
public
isStaff() : bool
Return values
boolisTrialActive()
public
isTrialActive() : bool
Return values
boolisVerified()
public
isVerified() : bool|null
Return values
bool|nullremoveActivitySector()
public
removeActivitySector(ActivitySector $activitySector) : static
Parameters
- $activitySector : ActivitySector
Return values
staticremoveBusiness()
public
removeBusiness(Business $business) : static
Parameters
- $business : Business
Return values
staticremovePayment()
public
removePayment(Payment $payment) : static
Parameters
- $payment : Payment
Return values
staticremoveSubscription()
public
removeSubscription(Subscription $subscription) : static
Parameters
- $subscription : Subscription
Return values
staticremoveUser()
public
removeUser(self $user) : static
Parameters
- $user : self
Return values
staticsetAddress()
public
setAddress(string|null $address) : static
Parameters
- $address : string|null
Return values
staticsetBusinessName()
public
setBusinessName(string|null $businessName) : static
Parameters
- $businessName : string|null
Return values
staticsetBusinessType()
public
setBusinessType(BusinessType|null $businessType) : static
Parameters
- $businessType : BusinessType|null
Return values
staticsetCreatedAt()
public
setCreatedAt(DateTimeImmutable $created_at) : static
Parameters
- $created_at : DateTimeImmutable
Return values
staticsetEmail()
public
setEmail(string $email) : static
Parameters
- $email : string
Return values
staticsetIdentityDocumentOfManager()
public
setIdentityDocumentOfManager(string|null $IdentityDocumentOfManager) : static
Parameters
- $IdentityDocumentOfManager : string|null
Return values
staticsetName()
public
setName(string|null $name) : static
Parameters
- $name : string|null
Return values
staticsetParent()
public
setParent(self|null $parent) : static
Parameters
- $parent : self|null
Return values
staticsetPassword()
public
setPassword(string|null $password) : static
Parameters
- $password : string|null
Return values
staticsetPhoneIndex()
public
setPhoneIndex(string|null $phoneIndex) : static
Parameters
- $phoneIndex : string|null
Return values
staticsetPhoneNumber()
public
setPhoneNumber(string|null $phone_number) : static
Parameters
- $phone_number : string|null
Return values
staticsetProfil()
public
setProfil(string|null $profil) : static
Parameters
- $profil : string|null
Return values
staticsetProofOfDomiciliation()
public
setProofOfDomiciliation(string|null $proofOfDomiciliation) : static
Parameters
- $proofOfDomiciliation : string|null
Return values
staticsetRccm()
public
setRccm(string|null $rccm) : static
Parameters
- $rccm : string|null
Return values
staticsetResetToken()
public
setResetToken(string|null $ResetToken) : static
Parameters
- $ResetToken : string|null
Return values
staticsetResetTokenExpiresAt()
public
setResetTokenExpiresAt(DateTimeInterface|null $ResetTokenExpiresAt) : static
Parameters
- $ResetTokenExpiresAt : DateTimeInterface|null
Return values
staticsetRoles()
public
setRoles(array<int, string> $roles) : static
Parameters
- $roles : array<int, string>
Return values
staticsetSelectedSaleTypes()
public
setSelectedSaleTypes(array<string|int, mixed>|null $selectedSaleTypes) : static
Parameters
- $selectedSaleTypes : array<string|int, mixed>|null
Return values
staticsetStatusSubscription()
public
setStatusSubscription(string $statusSubscription) : static
Parameters
- $statusSubscription : string
Return values
staticsetTrialStartDate()
public
setTrialStartDate(DateTimeInterface|null $trialStartDate) : static
Parameters
- $trialStartDate : DateTimeInterface|null
Return values
staticsetUpdatedAt()
public
setUpdatedAt(DateTimeImmutable $updated_at) : static
Parameters
- $updated_at : DateTimeImmutable
Return values
staticsetVerificationToken()
public
setVerificationToken(string|null $verificationToken) : static
Parameters
- $verificationToken : string|null
Return values
staticsetVerificationTokenExpiresAt()
public
setVerificationTokenExpiresAt(DateTimeInterface|null $verificationTokenExpiresAt) : static
Parameters
- $verificationTokenExpiresAt : DateTimeInterface|null
Return values
staticsetVerified()
public
setVerified(bool|null $isVerified) : static
Parameters
- $isVerified : bool|null