-
#[Entity]
-
$repositoryClass: \App\Repository\CartRepository::class
Table of Contents
Properties
-
$id
: int|null
-
$price
: float|null
-
$product
: Product|null
-
$quantity
: int|null
-
$type_sale
: bool|null
-
$user
: User|null
Methods
-
getId()
: int|null
-
getPrice()
: float|null
-
getProduct()
: Product|null
-
getQuantity()
: int|null
-
getUser()
: User|null
-
isTypeSale()
: bool|null
-
setPrice()
: float|null
-
setProduct()
: static
-
setQuantity()
: static
-
setTypeSale()
: static
-
setUser()
: static
$id
private
int|null
$id
= null
-
#[Column]
-
#[GeneratedValue]
-
#[Id]
$price
private
float|null
$price
= null
$product
private
Product|null
$product
= null
-
#[ManyToOne]
-
$inversedBy: 'carts'
$quantity
private
int|null
$quantity
= null
$type_sale
private
bool|null
$type_sale
= null
$user
private
User|null
$user
= null
-
#[ManyToOne]
-
$inversedBy: 'carts'
getId()
public
getId() : int|null
getPrice()
public
getPrice() : float|null
getProduct()
public
getProduct() : Product|null
getQuantity()
public
getQuantity() : int|null
getUser()
public
getUser() : User|null
isTypeSale()
public
isTypeSale() : bool|null
setPrice()
public
setPrice(float $price) : float|null
Parameters
-
$price
: float
-
setProduct()
public
setProduct(Product|null $product) : static
Parameters
-
$product
: Product|null
-
setQuantity()
public
setQuantity(int $quantity) : static
Parameters
-
$quantity
: int
-
setTypeSale()
public
setTypeSale(bool $type_sale) : static
Parameters
-
$type_sale
: bool
-
setUser()
public
setUser(User|null $user) : static
Parameters
-
$user
: User|null
-