BConnect POS - Reference PHP

Cart
in package

Attributes
#[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

Properties

$id

private int|null $id = null
Attributes
#[Column]
#[GeneratedValue]
#[Id]

$price

private float|null $price = null
Attributes
#[Column]

$product

private Product|null $product = null
Attributes
#[ManyToOne]
$inversedBy: 'carts'

$quantity

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

$type_sale

private bool|null $type_sale = null
Attributes
#[Column]

$user

private User|null $user = null
Attributes
#[ManyToOne]
$inversedBy: 'carts'

Methods

getId()

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

getPrice()

public getPrice() : float|null
Return values
float|null

getQuantity()

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

isTypeSale()

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

setPrice()

public setPrice(float $price) : float|null
Parameters
$price : float
Return values
float|null

setProduct()

public setProduct(Product|null $product) : static
Parameters
$product : Product|null
Return values
static

setQuantity()

public setQuantity(int $quantity) : static
Parameters
$quantity : int
Return values
static

setTypeSale()

public setTypeSale(bool $type_sale) : static
Parameters
$type_sale : bool
Return values
static

setUser()

public setUser(User|null $user) : static
Parameters
$user : User|null
Return values
static
On this page

Search results