BConnect Business - Reference PHP

Business
in package

Attributes
#[Entity]
$repositoryClass: \App\Repository\BusinessRepository::class

Table of Contents

Properties

$activity_sector  : ActivitySector|null
$address  : string|null
$created_at  : DateTimeImmutable|null
$description_activity_sector  : string|null
$email  : string|null
$id  : int|null
$logo  : string|null
$name  : string|null
$phoneIndex  : string|null
$phoneNumber  : string|null
$pointOfSales  : Collection<int, PointOfSale>
$updated_at  : DateTimeImmutable|null
$user  : User|null

Methods

__construct()  : mixed
addPointOfSale()  : static
getActivitySector()  : ActivitySector|null
getAddress()  : string|null
getCreatedAt()  : DateTimeImmutable|null
getDescriptionActivitySector()  : string|null
getEmail()  : string|null
getId()  : int|null
getLogo()  : string|null
getName()  : string|null
getPhoneIndex()  : string|null
getPhoneNumber()  : string|null
getPointOfSales()  : Collection<int, PointOfSale>
getUpdatedAt()  : DateTimeImmutable|null
getUser()  : User|null
removePointOfSale()  : static
setActivitySector()  : static
setAddress()  : static
setCreatedAt()  : static
setDescriptionActivitySector()  : static
setEmail()  : static
setLogo()  : static
setName()  : static
setPhoneIndex()  : static
setPhoneNumber()  : static
setUpdatedAt()  : static
setUser()  : static

Properties

$activity_sector

private ActivitySector|null $activity_sector = null
Attributes
#[ManyToOne]
$inversedBy: 'businesses'

$address

private string|null $address = null
Attributes
#[Column]
$length: 255

$created_at

private DateTimeImmutable|null $created_at = null
Attributes
#[Column]
$nullable: true

$description_activity_sector

private string|null $description_activity_sector = null
Attributes
#[Column]
$length: 255
$nullable: true

$email

private string|null $email = null
Attributes
#[Column]
$length: 255

$id

private int|null $id = null
Attributes
#[Column]
#[GeneratedValue]
#[Id]
private string|null $logo = null
Attributes
#[Column]
$length: 255
$nullable: true

$name

private string|null $name = null
Attributes
#[Column]
$length: 255

$phoneIndex

private string|null $phoneIndex = '+224'
Attributes
#[Column]
$length: 10
$nullable: true

$phoneNumber

private string|null $phoneNumber = null
Attributes
#[Column]
$length: 255

$pointOfSales

private Collection<int, PointOfSale> $pointOfSales
Attributes
#[OneToMany]
$targetEntity: \App\Entity\PointOfSale::class
$mappedBy: 'business'

$updated_at

private DateTimeImmutable|null $updated_at = null
Attributes
#[Column]
$nullable: true

$user

private User|null $user = null
Attributes
#[ManyToOne]
$targetEntity: \App\Entity\User::class
$cascade: ['persist']
$inversedBy: 'businesses'

Methods

__construct()

public __construct() : mixed

getAddress()

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

getCreatedAt()

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

getDescriptionActivitySector()

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

getEmail()

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

getId()

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

getName()

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

getPhoneIndex()

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

getPhoneNumber()

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

getUpdatedAt()

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

setAddress()

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

setCreatedAt()

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

setDescriptionActivitySector()

public setDescriptionActivitySector(string|null $description_activity_sector) : static
Parameters
$description_activity_sector : string|null
Return values
static

setEmail()

public setEmail(string $email) : static
Parameters
$email : string
Return values
static
public setLogo(string|null $logo) : static
Parameters
$logo : string|null
Return values
static

setName()

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

setPhoneIndex()

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

setPhoneNumber()

public setPhoneNumber(string $phoneNumber) : static
Parameters
$phoneNumber : string
Return values
static

setUpdatedAt()

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

setUser()

public setUser(User|null $user) : static
Parameters
$user : User|null
Return values
static
On this page

Search results