-
#[Entity]
-
$repositoryClass: \App\Repository\InventoryRepository::class
Table of Contents
Properties
-
$archive_status
: bool|null
-
$created_at
: DateTime|null
-
$id
: int|null
-
$inventoryProducts
: Collection
-
$name
: string|null
-
$pointOfSaleId
: int|null
-
$stock_source
: string|null
-
$user
: User|null
Methods
-
__construct()
: mixed
-
addInventoryProduct()
: static
-
getCreatedAt()
: DateTime|null
-
getId()
: int|null
-
getInventoryProducts()
: Collection<int, InventoryProduct>
-
getName()
: string|null
-
getPointOfSaleId()
: int|null
-
getStockSource()
: string|null
-
getUser()
: User|null
-
isArchiveStatus()
: bool|null
-
removeInventoryProduct()
: static
-
setArchiveStatus()
: static
-
setCreatedAt()
: static
-
setName()
: static
-
setPointOfSaleId()
: static
-
setStockSource()
: static
-
setUser()
: static
$archive_status
private
bool|null
$archive_status
= null
$created_at
private
DateTime|null
$created_at
= null
$id
private
int|null
$id
= null
-
#[Column]
-
#[GeneratedValue]
-
#[Id]
$inventoryProducts
private
Collection
$inventoryProducts
-
#[OneToMany]
-
$mappedBy: 'inventory'
-
$targetEntity: \App\Entity\InventoryProduct::class
-
$cascade: ['persist']
$name
private
string|null
$name
= null
-
#[Column]
-
$length: 255
-
$nullable: true
$pointOfSaleId
private
int|null
$pointOfSaleId
= null
$stock_source
private
string|null
$stock_source
= 'sale'
-
#[Column]
-
$length: 255
-
$nullable: true
$user
private
User|null
$user
= null
-
#[JoinColumn]
-
$nullable: true
-
#[ManyToOne]
-
$inversedBy: 'inventories'
__construct()
public
__construct() : mixed
addInventoryProduct()
public
addInventoryProduct(InventoryProduct $inventoryProduct) : static
Parameters
-
$inventoryProduct
: InventoryProduct
-
getCreatedAt()
public
getCreatedAt() : DateTime|null
Return values
DateTime|null
getId()
public
getId() : int|null
getInventoryProducts()
public
getInventoryProducts() : Collection<int, InventoryProduct>
getName()
public
getName() : string|null
Return values
string|null
getPointOfSaleId()
public
getPointOfSaleId() : int|null
getStockSource()
public
getStockSource() : string|null
Return values
string|null
getUser()
public
getUser() : User|null
isArchiveStatus()
public
isArchiveStatus() : bool|null
removeInventoryProduct()
public
removeInventoryProduct(InventoryProduct $inventoryProduct) : static
Parameters
-
$inventoryProduct
: InventoryProduct
-
setArchiveStatus()
public
setArchiveStatus(bool $archive_status) : static
Parameters
-
$archive_status
: bool
-
setCreatedAt()
public
setCreatedAt(DateTime $created_at) : static
Parameters
-
$created_at
: DateTime
-
setName()
public
setName(string|null $name) : static
Parameters
-
$name
: string|null
-
setPointOfSaleId()
public
setPointOfSaleId(int $pointOfSaleId) : static
Parameters
-
$pointOfSaleId
: int
-
setStockSource()
public
setStockSource(string|null $stock_source) : static
Parameters
-
$stock_source
: string|null
-
setUser()
public
setUser(User|null $user) : static
Parameters
-
$user
: User|null
-