ProductStock
-
#[Entity]
-
$repositoryClass: \App\Repository\ProductStockRepository::class
-
#[UniqueConstraint]
-
$name: 'uniq_product_stock_name_by_pos'
-
$columns: ['name', 'point_of_sale_id']
-
#[UniqueEntity]
-
$fields: ['name', 'pointOfSaleId']
-
$message: "Le nom du produit doit ĂȘtre unique par point de vente"
Table of Contents
Properties
-
$approval_certificate
: string|null
-
$archiveStatus
: bool|null
-
$category
: Category|null
-
$certificate_origin
: string|null
-
$created_at
: DateTimeImmutable|null
-
$expiration_date
: DateTimeInterface|null
-
$historyPurchaseOrders
: Collection
-
$id
: int|null
-
$image
: string|null
-
$invoice_purchase
: string|null
-
$manufacturing_date
: DateTimeInterface|null
-
$motif
: string|null
-
$name
: string|null
-
$pointOfSaleId
: int|null
-
$productStockInventories
: Collection
-
$purchase_price
: float|null
-
$purchaseOrders
: Collection
-
$quantity
: int|null
-
$saleProductStocks
: Collection
-
$status
: bool|null
-
$supplier
: Supplier|null
-
$unitOfMeasurement
: string|null
-
$updated_at
: DateTimeImmutable|null
Methods
-
__construct()
: mixed
-
addHistoryPurchaseOrder()
: static
-
addProductStockInventory()
: static
-
addPurchaseOrder()
: static
-
addSaleProductStock()
: static
-
getApprovalCertificate()
: string|null
-
getCategory()
: Category|null
-
getCertificateOrigin()
: string|null
-
getCreatedAt()
: DateTimeImmutable|null
-
getExpirationDate()
: DateTimeInterface|null
-
getHistoryPurchaseOrders()
: Collection<int, HistoryPurchaseOrder>
-
getId()
: int|null
-
getImage()
: string|null
-
getInvoicePurchase()
: string|null
-
getManufacturingDate()
: DateTimeInterface|null
-
getMotif()
: string|null
-
getName()
: string|null
-
getPointOfSaleId()
: int|null
-
getProductStockInventories()
: Collection<int, ProductStockInventory>
-
getPurchaseOrders()
: Collection<int, PurchaseOrder>
-
getPurchasePrice()
: float|null
-
getQuantity()
: int|null
-
getSaleProductStocks()
: Collection<int, SaleProductStock>
-
getSupplier()
: Supplier|null
-
getUnitOfMeasurement()
: string|null
-
getUpdatedAt()
: DateTimeImmutable|null
-
isArchiveStatus()
: bool|null
-
isStatus()
: bool|null
-
removeHistoryPurchaseOrder()
: static
-
removeProductStockInventory()
: static
-
removePurchaseOrder()
: static
-
removeSaleProductStock()
: static
-
setApprovalCertificate()
: static
-
setArchiveStatus()
: static
-
setCategory()
: static
-
setCertificateOrigin()
: static
-
setCreatedAt()
: static
-
setExpirationDate()
: static
-
setImage()
: static
-
setInvoicePurchase()
: static
-
setManufacturingDate()
: static
-
setMotif()
: static
-
setName()
: static
-
setPointOfSaleId()
: static
-
setPurchasePrice()
: static
-
setQuantity()
: static
-
setStatus()
: static
-
setSupplier()
: static
-
setUnitOfMeasurement()
: static
-
setUpdatedAt()
: static
$approval_certificate
private
string|null
$approval_certificate
= null
-
#[Column]
-
$nullable: true
$archiveStatus
private
bool|null
$archiveStatus
= null
-
#[Column]
-
$nullable: true
$category
private
Category|null
$category
= null
-
#[JoinColumn]
-
$nullable: false
-
#[ManyToOne]
-
$inversedBy: 'productStocks'
$certificate_origin
private
string|null
$certificate_origin
= null
-
#[Column]
-
$nullable: true
$created_at
private
DateTimeImmutable|null
$created_at
= null
$expiration_date
private
DateTimeInterface|null
$expiration_date
= null
-
#[Column]
-
$type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE
-
$nullable: true
$historyPurchaseOrders
private
Collection
$historyPurchaseOrders
-
#[OneToMany]
-
$mappedBy: 'productStock'
-
$targetEntity: \App\Entity\HistoryPurchaseOrder::class
$id
private
int|null
$id
= null
-
#[Column]
-
#[GeneratedValue]
-
#[Id]
$image
private
string|null
$image
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$invoice_purchase
private
string|null
$invoice_purchase
= null
-
#[Column]
-
$nullable: true
$manufacturing_date
private
DateTimeInterface|null
$manufacturing_date
= null
-
#[Column]
-
$type: \Doctrine\DBAL\Types\Types::DATETIME_MUTABLE
-
$nullable: true
$motif
private
string|null
$motif
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$name
private
string|null
$name
= null
$pointOfSaleId
private
int|null
$pointOfSaleId
= null
$productStockInventories
private
Collection
$productStockInventories
-
#[OneToMany]
-
$mappedBy: 'product'
-
$targetEntity: \App\Entity\ProductStockInventory::class
$purchase_price
private
float|null
$purchase_price
= null
$purchaseOrders
private
Collection
$purchaseOrders
-
#[OneToMany]
-
$mappedBy: 'productStock'
-
$targetEntity: \App\Entity\PurchaseOrder::class
$quantity
private
int|null
$quantity
= null
$saleProductStocks
private
Collection
$saleProductStocks
-
#[OneToMany]
-
$mappedBy: 'product_stock'
-
$targetEntity: \App\Entity\SaleProductStock::class
-
$cascade: ['persist']
$status
private
bool|null
$status
= null
$supplier
private
Supplier|null
$supplier
= null
-
#[JoinColumn]
-
$nullable: true
-
#[ManyToOne]
-
$inversedBy: 'productStocks'
$unitOfMeasurement
private
string|null
$unitOfMeasurement
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$updated_at
private
DateTimeImmutable|null
$updated_at
= null
__construct()
public
__construct() : mixed
addHistoryPurchaseOrder()
public
addHistoryPurchaseOrder(HistoryPurchaseOrder $historyPurchaseOrder) : static
Parameters
-
$historyPurchaseOrder
: HistoryPurchaseOrder
-
addProductStockInventory()
public
addProductStockInventory(ProductStockInventory $productStockInventory) : static
Parameters
-
$productStockInventory
: ProductStockInventory
-
addPurchaseOrder()
public
addPurchaseOrder(PurchaseOrder $purchaseOrder) : static
Parameters
-
$purchaseOrder
: PurchaseOrder
-
addSaleProductStock()
public
addSaleProductStock(SaleProductStock $saleProductStock) : static
Parameters
-
$saleProductStock
: SaleProductStock
-
getApprovalCertificate()
public
getApprovalCertificate() : string|null
Return values
string|null
getCategory()
public
getCategory() : Category|null
getCertificateOrigin()
public
getCertificateOrigin() : string|null
Return values
string|null
getCreatedAt()
public
getCreatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null
getExpirationDate()
public
getExpirationDate() : DateTimeInterface|null
Return values
DateTimeInterface|null
getHistoryPurchaseOrders()
public
getHistoryPurchaseOrders() : Collection<int, HistoryPurchaseOrder>
getId()
public
getId() : int|null
getImage()
public
getImage() : string|null
Return values
string|null
getInvoicePurchase()
public
getInvoicePurchase() : string|null
Return values
string|null
getManufacturingDate()
public
getManufacturingDate() : DateTimeInterface|null
Return values
DateTimeInterface|null
getMotif()
public
getMotif() : string|null
Return values
string|null
getName()
public
getName() : string|null
Return values
string|null
getPointOfSaleId()
public
getPointOfSaleId() : int|null
getProductStockInventories()
public
getProductStockInventories() : Collection<int, ProductStockInventory>
getPurchaseOrders()
public
getPurchaseOrders() : Collection<int, PurchaseOrder>
getPurchasePrice()
public
getPurchasePrice() : float|null
getQuantity()
public
getQuantity() : int|null
getSaleProductStocks()
public
getSaleProductStocks() : Collection<int, SaleProductStock>
getSupplier()
public
getSupplier() : Supplier|null
getUnitOfMeasurement()
public
getUnitOfMeasurement() : string|null
Return values
string|null
getUpdatedAt()
public
getUpdatedAt() : DateTimeImmutable|null
Return values
DateTimeImmutable|null
isArchiveStatus()
public
isArchiveStatus() : bool|null
isStatus()
public
isStatus() : bool|null
removeHistoryPurchaseOrder()
public
removeHistoryPurchaseOrder(HistoryPurchaseOrder $historyPurchaseOrder) : static
Parameters
-
$historyPurchaseOrder
: HistoryPurchaseOrder
-
removeProductStockInventory()
public
removeProductStockInventory(ProductStockInventory $productStockInventory) : static
Parameters
-
$productStockInventory
: ProductStockInventory
-
removePurchaseOrder()
public
removePurchaseOrder(PurchaseOrder $purchaseOrder) : static
Parameters
-
$purchaseOrder
: PurchaseOrder
-
removeSaleProductStock()
public
removeSaleProductStock(SaleProductStock $saleProductStock) : static
Parameters
-
$saleProductStock
: SaleProductStock
-
setApprovalCertificate()
public
setApprovalCertificate(string $approval_certificate) : static
Parameters
-
$approval_certificate
: string
-
setArchiveStatus()
public
setArchiveStatus(bool|null $archiveStatus) : static
Parameters
-
$archiveStatus
: bool|null
-
setCategory()
public
setCategory(Category|null $category) : static
Parameters
-
$category
: Category|null
-
setCertificateOrigin()
public
setCertificateOrigin(string $certificate_origin) : static
Parameters
-
$certificate_origin
: string
-
setCreatedAt()
public
setCreatedAt(DateTimeImmutable $created_at) : static
Parameters
-
$created_at
: DateTimeImmutable
-
setExpirationDate()
public
setExpirationDate(DateTimeInterface|null $expiration_date) : static
Parameters
-
$expiration_date
: DateTimeInterface|null
-
setImage()
public
setImage(string|null $image) : static
Parameters
-
$image
: string|null
-
setInvoicePurchase()
public
setInvoicePurchase(string $invoice_purchase) : static
Parameters
-
$invoice_purchase
: string
-
setManufacturingDate()
public
setManufacturingDate(DateTimeInterface|null $manufacturing_date) : static
Parameters
-
$manufacturing_date
: DateTimeInterface|null
-
setMotif()
public
setMotif(string|null $motif) : static
Parameters
-
$motif
: string|null
-
setName()
public
setName(string $name) : static
Parameters
-
$name
: string
-
setPointOfSaleId()
public
setPointOfSaleId(int $pointOfSaleId) : static
Parameters
-
$pointOfSaleId
: int
-
setPurchasePrice()
public
setPurchasePrice(float $purchase_price) : static
Parameters
-
$purchase_price
: float
-
setQuantity()
public
setQuantity(int $quantity) : static
Parameters
-
$quantity
: int
-
setStatus()
public
setStatus(bool $status) : static
Parameters
-
$status
: bool
-
setSupplier()
public
setSupplier(Supplier|null $supplier) : static
Parameters
-
$supplier
: Supplier|null
-
setUnitOfMeasurement()
public
setUnitOfMeasurement(string|null $unitOfMeasurement) : static
Parameters
-
$unitOfMeasurement
: string|null
-
setUpdatedAt()
public
setUpdatedAt(DateTimeImmutable $updated_at) : static
Parameters
-
$updated_at
: DateTimeImmutable
-