-
#[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
$adresse
private
string|null
$adresse
= null
-
#[Column]
-
$length: 255
-
#[Groups]
-
['customer:read', 'session:read']
$archiveStatus
private
bool|null
$archiveStatus
= null
-
#[Column]
-
$nullable: true
$city
private
string|null
$city
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$country
private
string|null
$country
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$created_at
private
DateTimeImmutable|null
$created_at
= null
$email
private
string|null
$email
= null
-
#[Column]
-
$length: 255
-
$nullable: true
-
#[Groups]
-
'customer:read'
$first_name
private
string|null
$first_name
= null
-
#[Column]
-
$length: 60
-
#[Groups]
-
['customer:read', 'session:read']
$gender
private
string|null
$gender
= null
$id
private
int|null
$id
= null
-
#[Column]
-
#[GeneratedValue]
-
#[Groups]
-
['customer:read', 'session:read']
-
#[Id]
$last_name
private
string|null
$last_name
= null
-
#[Column]
-
$length: 60
-
#[Groups]
-
['customer:read', 'session:read']
$phone_number
private
PhoneNumber|null
$phone_number
= null
-
#[Column]
-
$type: "phone_number"
-
$length: 255
-
$nullable: true
-
#[Groups]
-
['customer:read', 'session:read']
$pointOfSaleId
private
int|null
$pointOfSaleId
= null
$sales
private
Collection
$sales
-
#[OneToMany]
-
$mappedBy: 'customer'
-
$targetEntity: \App\Entity\Sale::class
$updated_at
private
DateTimeImmutable|null
$updated_at
= null
__construct()
public
__construct() : mixed
addOrder()
public
addOrder(Sale $sale) : static
Parameters
-
$sale
: Sale
-
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
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
getUpdatedAt()
public
getUpdatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null
isArchiveStatus()
public
isArchiveStatus() : bool|null
removeOrder()
public
removeOrder(Sale $sale) : static
Parameters
-
$sale
: Sale
-
setAdresse()
public
setAdresse(string $adresse) : static
Parameters
-
$adresse
: string
-
setArchiveStatus()
public
setArchiveStatus(bool|null $archiveStatus) : static
Parameters
-
$archiveStatus
: bool|null
-
setCity()
public
setCity(string|null $city) : static
Parameters
-
$city
: string|null
-
setCountry()
public
setCountry(string|null $country) : static
Parameters
-
$country
: string|null
-
setCreatedAt()
public
setCreatedAt(DateTimeImmutable $created_at) : static
Parameters
-
$created_at
: DateTimeImmutable
-
setEmail()
public
setEmail(string $email) : static
Parameters
-
$email
: string
-
setFirstName()
public
setFirstName(string $first_name) : static
Parameters
-
$first_name
: string
-
setGender()
public
setGender(string $gender) : static
Parameters
-
$gender
: string
-
setLastName()
public
setLastName(string $last_name) : static
Parameters
-
$last_name
: string
-
setPhoneNumber()
public
setPhoneNumber(PhoneNumber|null $phone_number) : static
Parameters
-
$phone_number
: PhoneNumber|null
-
setPointOfSaleId()
public
setPointOfSaleId(int $pointOfSaleId) : static
Parameters
-
$pointOfSaleId
: int
-
setUpdatedAt()
public
setUpdatedAt(DateTimeImmutable $updated_at) : static
Parameters
-
$updated_at
: DateTimeImmutable
-