BConnect POS - Reference PHP

Customer
in package

Attributes
#[ApiResource]
$operations: [new \ApiPlatform\Metadata\GetCollection(), new \ApiPlatform\Metadata\Get()]
$normalizationContext: ['groups' => ['customer:read']]
$filters: [\App\Filter\PointOfSaleParamFilter::class]
#[Entity]
$repositoryClass: \App\Repository\CustomerRepository::class

Table of Contents

Properties

$adresse  : string|null
$archiveStatus  : bool|null
$city  : string|null
$country  : string|null
$created_at  : DateTimeImmutable|null
$email  : string|null
$first_name  : string|null
$gender  : string|null
$id  : int|null
$last_name  : string|null
$phone_number  : PhoneNumber|null
$pointOfSaleId  : int|null
$sales  : Collection
$updated_at  : DateTimeImmutable|null

Methods

__construct()  : mixed
addOrder()  : static
getAdresse()  : string|null
getCity()  : string|null
getCountry()  : string|null
getCreatedAt()  : DateTimeImmutable|null
getEmail()  : string|null
getFirstName()  : string|null
getGender()  : string|null
getId()  : int|null
getLastName()  : string|null
getOrders()  : Collection<int, Sale>
getPhoneNumber()  : PhoneNumber|null
getPointOfSaleId()  : int|null
getUpdatedAt()  : DateTimeImmutable|null
isArchiveStatus()  : bool|null
removeOrder()  : static
setAdresse()  : static
setArchiveStatus()  : static
setCity()  : static
setCountry()  : static
setCreatedAt()  : static
setEmail()  : static
setFirstName()  : static
setGender()  : static
setLastName()  : static
setPhoneNumber()  : static
setPointOfSaleId()  : static
setUpdatedAt()  : static

Properties

$adresse

private string|null $adresse = null
Attributes
#[Column]
$length: 255
#[Groups]
['customer:read', 'session:read']

$archiveStatus

private bool|null $archiveStatus = null
Attributes
#[Column]
$nullable: true

$city

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

$country

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

$created_at

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

$email

private string|null $email = null
Attributes
#[Column]
$length: 255
$nullable: true
#[Groups]
'customer:read'

$first_name

private string|null $first_name = null
Attributes
#[Column]
$length: 60
#[Groups]
['customer:read', 'session:read']

$gender

private string|null $gender = null
Attributes
#[Column]
$length: 10

$id

private int|null $id = null
Attributes
#[Column]
#[GeneratedValue]
#[Groups]
['customer:read', 'session:read']
#[Id]

$last_name

private string|null $last_name = null
Attributes
#[Column]
$length: 60
#[Groups]
['customer:read', 'session:read']

$phone_number

private PhoneNumber|null $phone_number = null
Attributes
#[Column]
$type: "phone_number"
$length: 255
$nullable: true
#[Groups]
['customer:read', 'session:read']

$pointOfSaleId

private int|null $pointOfSaleId = null
Attributes
#[Column]

$sales

private Collection $sales
Attributes
#[OneToMany]
$mappedBy: 'customer'
$targetEntity: \App\Entity\Sale::class

$updated_at

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

Methods

__construct()

public __construct() : mixed

addOrder()

public addOrder(Sale $sale) : static
Parameters
$sale : Sale
Return values
static

getAdresse()

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

getCity()

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

getCountry()

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

getCreatedAt()

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

getEmail()

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

getFirstName()

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

getGender()

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

getId()

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

getLastName()

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

getOrders()

public getOrders() : Collection<int, Sale>
Return values
Collection<int, Sale>

getPhoneNumber()

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

getPointOfSaleId()

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

getUpdatedAt()

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

isArchiveStatus()

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

removeOrder()

public removeOrder(Sale $sale) : static
Parameters
$sale : Sale
Return values
static

setAdresse()

public setAdresse(string $adresse) : static
Parameters
$adresse : string
Return values
static

setArchiveStatus()

public setArchiveStatus(bool|null $archiveStatus) : static
Parameters
$archiveStatus : bool|null
Return values
static

setCity()

public setCity(string|null $city) : static
Parameters
$city : string|null
Return values
static

setCountry()

public setCountry(string|null $country) : static
Parameters
$country : string|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

setFirstName()

public setFirstName(string $first_name) : static
Parameters
$first_name : string
Return values
static

setGender()

public setGender(string $gender) : static
Parameters
$gender : string
Return values
static

setLastName()

public setLastName(string $last_name) : static
Parameters
$last_name : string
Return values
static

setPhoneNumber()

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

setPointOfSaleId()

public setPointOfSaleId(int $pointOfSaleId) : static
Parameters
$pointOfSaleId : int
Return values
static

setUpdatedAt()

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

Search results