BConnect Business - Reference PHP

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

$email

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

addBusiness()

public addBusiness(Business $business) : static
Parameters
$business : Business
Return values
static

addPayment()

public addPayment(Payment $payment) : static
Parameters
$payment : Payment
Return values
static

addUser()

public addUser(self $user) : static
Parameters
$user : self
Return values
static

eraseCredentials()

public eraseCredentials() : void
Tags
see
UserInterface

getAddress()

public getAddress() : string|null
Return values
string|null

getBusinesses()

public getBusinesses() : Collection<int, Business>
Return values
Collection<int, Business>

getBusinessName()

public getBusinessName() : string|null
Return values
string|null

getCreatedAt()

public getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getCurrentPricingName()

public getCurrentPricingName() : string
Return values
string

getEmail()

public getEmail() : string|null
Return values
string|null

getId()

public getId() : int|null
Return values
int|null

getIdentityDocumentOfManager()

public getIdentityDocumentOfManager() : string|null
Return values
string|null

getName()

public getName() : string|null
Return values
string|null

getParent()

public getParent() : self|null
Return values
self|null

getPassword()

public getPassword() : string
Tags
see
PasswordAuthenticatedUserInterface
Return values
string

getPayments()

public getPayments() : Collection<int, Payment>
Return values
Collection<int, Payment>

getPhoneIndex()

public getPhoneIndex() : string|null
Return values
string|null

getPhoneNumber()

public getPhoneNumber() : string|null
Return values
string|null

getProfil()

public getProfil() : string|null
Return values
string|null

getProofOfDomiciliation()

public getProofOfDomiciliation() : string|null
Return values
string|null

getRccm()

public getRccm() : string|null
Return values
string|null

getResetToken()

public getResetToken() : string|null
Return values
string|null

getResetTokenExpiresAt()

public getResetTokenExpiresAt() : DateTimeInterface|null
Return values
DateTimeInterface|null

getRoles()

public getRoles() : array<int, string>
Tags
see
UserInterface
Return values
array<int, string>

getSelectedSaleTypes()

public getSelectedSaleTypes() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getStatusSubscription()

public getStatusSubscription() : string|null
Return values
string|null

getTrialEndDate()

public getTrialEndDate() : DateTimeInterface|null
Return values
DateTimeInterface|null

getTrialStartDate()

public getTrialStartDate() : DateTimeInterface|null
Return values
DateTimeInterface|null

getUpdatedAt()

public getUpdatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null

getUserIdentifier()

A visual identifier that represents this user.

public getUserIdentifier() : string
Tags
see
UserInterface
Return values
string

getUsers()

public getUsers() : Collection<int, self>
Return values
Collection<int, self>

getVerificationToken()

public getVerificationToken() : string|null
Return values
string|null

getVerificationTokenExpiresAt()

public getVerificationTokenExpiresAt() : DateTimeInterface|null
Return values
DateTimeInterface|null

hasActiveSubscription()

public hasActiveSubscription() : bool
Return values
bool

isStaff()

public isStaff() : bool
Return values
bool

isTrialActive()

public isTrialActive() : bool
Return values
bool

isVerified()

public isVerified() : bool|null
Return values
bool|null

removeBusiness()

public removeBusiness(Business $business) : static
Parameters
$business : Business
Return values
static

removePayment()

public removePayment(Payment $payment) : static
Parameters
$payment : Payment
Return values
static

removeSubscription()

public removeSubscription(Subscription $subscription) : static
Parameters
$subscription : Subscription
Return values
static

removeUser()

public removeUser(self $user) : static
Parameters
$user : self
Return values
static

setAddress()

public setAddress(string|null $address) : static
Parameters
$address : string|null
Return values
static

setBusinessName()

public setBusinessName(string|null $businessName) : static
Parameters
$businessName : string|null
Return values
static

setBusinessType()

public setBusinessType(BusinessType|null $businessType) : static
Parameters
$businessType : BusinessType|null
Return values
static

setCreatedAt()

public setCreatedAt(DateTimeImmutable $created_at) : static
Parameters
$created_at : DateTimeImmutable
Return values
static

setEmail()

public setEmail(string $email) : static
Parameters
$email : string
Return values
static

setIdentityDocumentOfManager()

public setIdentityDocumentOfManager(string|null $IdentityDocumentOfManager) : static
Parameters
$IdentityDocumentOfManager : string|null
Return values
static

setName()

public setName(string|null $name) : static
Parameters
$name : string|null
Return values
static

setParent()

public setParent(self|null $parent) : static
Parameters
$parent : self|null
Return values
static

setPassword()

public setPassword(string|null $password) : static
Parameters
$password : string|null
Return values
static

setPhoneIndex()

public setPhoneIndex(string|null $phoneIndex) : static
Parameters
$phoneIndex : string|null
Return values
static

setPhoneNumber()

public setPhoneNumber(string|null $phone_number) : static
Parameters
$phone_number : string|null
Return values
static

setProfil()

public setProfil(string|null $profil) : static
Parameters
$profil : string|null
Return values
static

setProofOfDomiciliation()

public setProofOfDomiciliation(string|null $proofOfDomiciliation) : static
Parameters
$proofOfDomiciliation : string|null
Return values
static

setRccm()

public setRccm(string|null $rccm) : static
Parameters
$rccm : string|null
Return values
static

setResetToken()

public setResetToken(string|null $ResetToken) : static
Parameters
$ResetToken : string|null
Return values
static

setResetTokenExpiresAt()

public setResetTokenExpiresAt(DateTimeInterface|null $ResetTokenExpiresAt) : static
Parameters
$ResetTokenExpiresAt : DateTimeInterface|null
Return values
static

setRoles()

public setRoles(array<int, string> $roles) : static
Parameters
$roles : array<int, string>
Return values
static

setSelectedSaleTypes()

public setSelectedSaleTypes(array<string|int, mixed>|null $selectedSaleTypes) : static
Parameters
$selectedSaleTypes : array<string|int, mixed>|null
Return values
static

setStatusSubscription()

public setStatusSubscription(string $statusSubscription) : static
Parameters
$statusSubscription : string
Return values
static

setTrialStartDate()

public setTrialStartDate(DateTimeInterface|null $trialStartDate) : static
Parameters
$trialStartDate : DateTimeInterface|null
Return values
static

setUpdatedAt()

public setUpdatedAt(DateTimeImmutable $updated_at) : static
Parameters
$updated_at : DateTimeImmutable
Return values
static

setVerificationToken()

public setVerificationToken(string|null $verificationToken) : static
Parameters
$verificationToken : string|null
Return values
static

setVerificationTokenExpiresAt()

public setVerificationTokenExpiresAt(DateTimeInterface|null $verificationTokenExpiresAt) : static
Parameters
$verificationTokenExpiresAt : DateTimeInterface|null
Return values
static

setVerified()

public setVerified(bool|null $isVerified) : static
Parameters
$isVerified : bool|null
Return values
static
On this page

Search results