SaleProductStock
-
#[Entity]
-
$repositoryClass: \App\Repository\SaleProductStockRepository::class
Table of Contents
Properties
-
$id
: int|null
-
$product
: Product|null
-
$product_stock
: ProductStock|null
-
$quantity
: int|null
Methods
-
getId()
: int|null
-
getProduct()
: Product|null
-
getProductStock()
: ProductStock|null
-
getQuantity()
: int|null
-
setProduct()
: static
-
setProductStock()
: static
-
setQuantity()
: static
$id
private
int|null
$id
= null
-
#[Column]
-
#[GeneratedValue]
-
#[Id]
$product
private
Product|null
$product
= null
-
#[ManyToOne]
-
$cascade: ['persist']
-
$inversedBy: 'saleProductStocks'
$product_stock
private
ProductStock|null
$product_stock
= null
-
#[ManyToOne]
-
$cascade: ['persist']
-
$inversedBy: 'saleProductStocks'
$quantity
private
int|null
$quantity
= null
getId()
public
getId() : int|null
getProduct()
public
getProduct() : Product|null
getProductStock()
public
getProductStock() : ProductStock|null
getQuantity()
public
getQuantity() : int|null
setProduct()
public
setProduct(Product|null $product) : static
Parameters
-
$product
: Product|null
-
setProductStock()
public
setProductStock(ProductStock|null $product_stock) : static
Parameters
-
$product_stock
: ProductStock|null
-
setQuantity()
public
setQuantity(int $quantity) : static
Parameters
-
$quantity
: int
-