ProductSold
in package
Uses
Sellable, Commentable
Tags
Table of Contents
Properties
- $sellRecords : mixed
- the stack of products for one client at one time
- $comment : mixed
- $id : mixed
- $image : mixed
- $name : mixed
- $price : mixed
- $product : mixed
- references the product from whom this line is inspired
- $user : mixed
Methods
- getComment() : mixed
- getId() : int
- Get id.
- getImage() : string
- Get image.
- getName() : string
- Get name.
- getPrice() : mixed
- getProduct() : Product|null
- Get product.
- getSellRecords() : SellRecord|null
- Get sellRecords.
- getUser() : User|null
- Get user.
- setComment() : mixed
- setImage() : ProductSold
- Set image.
- setName() : ProductSold
- Set name.
- setPrice() : mixed
- setProduct() : ProductSold
- Set product.
- setSellRecords() : ProductSold
- Set sellRecords.
- setUser() : ProductSold
- Set user.
Properties
$sellRecords
the stack of products for one client at one time
public
mixed
$sellRecords
Tags
$comment
private
mixed
$comment
Tags
$id
private
mixed
$id
Tags
$image
private
mixed
$image
Tags
$name
private
mixed
$name
Tags
$price
private
mixed
$price
Tags
$product
references the product from whom this line is inspired
private
mixed
$product
Tags
$user
private
mixed
$user
Tags
Methods
getComment()
public
getComment() : mixed
getId()
Get id.
public
getId() : int
Return values
intgetImage()
Get image.
public
getImage() : string
Return values
stringgetName()
Get name.
public
getName() : string
Return values
stringgetPrice()
public
getPrice() : mixed
getProduct()
Get product.
public
getProduct() : Product|null
Return values
Product|nullgetSellRecords()
Get sellRecords.
public
getSellRecords() : SellRecord|null
Return values
SellRecord|nullgetUser()
Get user.
public
getUser() : User|null
Return values
User|nullsetComment()
public
setComment(mixed $comment) : mixed
Parameters
- $comment : mixed
setImage()
Set image.
public
setImage(string $image) : ProductSold
Parameters
- $image : string
Return values
ProductSoldsetName()
Set name.
public
setName(string $name) : ProductSold
Parameters
- $name : string
Return values
ProductSoldsetPrice()
public
setPrice(mixed $price) : mixed
Parameters
- $price : mixed
setProduct()
Set product.
public
setProduct([Product|null $product = null ]) : ProductSold
Parameters
- $product : Product|null = null
Return values
ProductSoldsetSellRecords()
Set sellRecords.
public
setSellRecords([SellRecord|null $sellRecords = null ]) : ProductSold
Parameters
- $sellRecords : SellRecord|null = null
Return values
ProductSoldsetUser()
Set user.
public
setUser([User|null $user = null ]) : ProductSold
Parameters
- $user : User|null = null