BConnect POS - Reference PHP

Inventory
in package

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

Properties

$archive_status

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

$created_at

private DateTime|null $created_at = null
Attributes
#[Column]

$id

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

$inventoryProducts

private Collection $inventoryProducts
Attributes
#[OneToMany]
$mappedBy: 'inventory'
$targetEntity: \App\Entity\InventoryProduct::class
$cascade: ['persist']

$name

private string|null $name = null
Attributes
#[Column]
$length: 255
$nullable: true

$pointOfSaleId

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

$stock_source

private string|null $stock_source = 'sale'
Attributes
#[Column]
$length: 255
$nullable: true

$user

private User|null $user = null
Attributes
#[JoinColumn]
$nullable: true
#[ManyToOne]
$inversedBy: 'inventories'

Methods

getCreatedAt()

public getCreatedAt() : DateTime|null
Return values
DateTime|null

getId()

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

getName()

public getName() : string|null
Return values
string|null

getPointOfSaleId()

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

getStockSource()

public getStockSource() : string|null
Return values
string|null

isArchiveStatus()

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

setArchiveStatus()

public setArchiveStatus(bool $archive_status) : static
Parameters
$archive_status : bool
Return values
static

setCreatedAt()

public setCreatedAt(DateTime $created_at) : static
Parameters
$created_at : DateTime
Return values
static

setName()

public setName(string|null $name) : static
Parameters
$name : string|null
Return values
static

setPointOfSaleId()

public setPointOfSaleId(int $pointOfSaleId) : static
Parameters
$pointOfSaleId : int
Return values
static

setStockSource()

public setStockSource(string|null $stock_source) : static
Parameters
$stock_source : string|null
Return values
static

setUser()

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

Search results