SellRecord
in package
Uses
Commentable
Tags
Table of Contents
Properties
- $amount : mixed
- total
- $comment : mixed
- $date : mixed
- creation date
- $festival : mixed
- $gender : mixed
- gender of the client
- $id : mixed
- $paidByClient : mixed
- amount paid by client
- $productsSold : mixed
- liste des produits de la vente
- $user : mixed
- owner of the selling account
Methods
- __construct() : mixed
- Constructor
- addProductsSold() : SellRecord
- Add productsSold
- getAmount() : string
- Get amount
- getComment() : mixed
- getDate() : DateTime
- Get date
- getFestival() : Festival
- Get festival
- getGender() : string|null
- Get gender.
- getId() : mixed
- getPaidByClient() : string
- Get paidByClient
- getProductsSold() : Collection
- Get productsSold
- getUser() : User
- Get user
- removeProductsSold() : mixed
- Remove productsSold
- setAmount() : SellRecord
- Set amount
- setComment() : mixed
- setDate() : SellRecord
- Set date
- setFestival() : SellRecord
- Set festival
- setGender() : SellRecord
- Set gender.
- setId() : mixed
- setPaidByClient() : SellRecord
- Set paidByClient
- setUser() : SellRecord
- Set user
Properties
$amount
total
private
mixed
$amount
Tags
$comment
private
mixed
$comment
Tags
$date
creation date
private
mixed
$date
Tags
$festival
private
mixed
$festival
Tags
$gender
gender of the client
private
mixed
$gender
Tags
$id
private
mixed
$id
Tags
$paidByClient
amount paid by client
private
mixed
$paidByClient
Tags
$productsSold
liste des produits de la vente
private
mixed
$productsSold
Tags
$user
owner of the selling account
private
mixed
$user
Tags
Methods
__construct()
Constructor
public
__construct() : mixed
addProductsSold()
Add productsSold
public
addProductsSold(ProductSold $productsSold) : SellRecord
Parameters
- $productsSold : ProductSold
Return values
SellRecordgetAmount()
Get amount
public
getAmount() : string
Return values
stringgetComment()
public
getComment() : mixed
getDate()
Get date
public
getDate() : DateTime
Return values
DateTimegetFestival()
Get festival
public
getFestival() : Festival
Return values
FestivalgetGender()
Get gender.
public
getGender() : string|null
Return values
string|nullgetId()
public
getId() : mixed
getPaidByClient()
Get paidByClient
public
getPaidByClient() : string
Return values
stringgetProductsSold()
Get productsSold
public
getProductsSold() : Collection
Return values
CollectiongetUser()
Get user
public
getUser() : User
Return values
UserremoveProductsSold()
Remove productsSold
public
removeProductsSold(ProductSold $productsSold) : mixed
Parameters
- $productsSold : ProductSold
setAmount()
Set amount
public
setAmount(string $amount) : SellRecord
Parameters
- $amount : string
Return values
SellRecordsetComment()
public
setComment(mixed $comment) : mixed
Parameters
- $comment : mixed
setDate()
Set date
public
setDate(DateTime $date) : SellRecord
Parameters
- $date : DateTime
Return values
SellRecordsetFestival()
Set festival
public
setFestival([Festival $festival = null ]) : SellRecord
Parameters
- $festival : Festival = null
Return values
SellRecordsetGender()
Set gender.
public
setGender([string|null $gender = null ]) : SellRecord
Parameters
- $gender : string|null = null
Return values
SellRecordsetId()
public
setId(mixed $id) : mixed
Parameters
- $id : mixed
setPaidByClient()
Set paidByClient
public
setPaidByClient(string $paidByClient) : SellRecord
Parameters
- $paidByClient : string
Return values
SellRecordsetUser()
Set user
public
setUser([User $user = null ]) : SellRecord
Parameters
- $user : User = null