ProductRowViewModel
FinalYes
Table of Contents
Properties
- $barcode : string
- $basketItemFields : array<string|int, mixed>
- $currencyId : string
- $deductedQuantity : float|null
- $gallery : array<string|int, mixed>
- $hasStoreAccess : bool
- $inputReserveQuantity : float|null
- $isDiscountEditable : bool
- $isPriceEditable : bool
- $isTaxMode : bool
- $rowReserved : float|null
- $sections : array<string|int, mixed>
- $shouldSyncReserveQuantity : bool
- $skuTree : array<string|int, mixed>
- $source : ProductRow
- $storeAmount : float|null
- $storeAvailableAmount : float|null
- $storeName : string|null
- $stores : array<string|int, mixed>
- $type : int
Methods
- __construct() : mixed
- createFromArray() : self
- getId() : int|string
- getProductId() : int
- toArray() : array<string|int, mixed>
Properties
$barcode
public
string
$barcode
= ''
$basketItemFields
public
array<string|int, mixed>
$basketItemFields
= []
$currencyId
public
string
$currencyId
$deductedQuantity
public
float|null
$deductedQuantity
= null
$gallery
public
array<string|int, mixed>
$gallery
= []
$hasStoreAccess
public
bool
$hasStoreAccess
= false
$inputReserveQuantity
public
float|null
$inputReserveQuantity
= null
$isDiscountEditable
public
bool
$isDiscountEditable
= true
$isPriceEditable
public
bool
$isPriceEditable
= false
$isTaxMode
public
bool
$isTaxMode
= false
$rowReserved
public
float|null
$rowReserved
= null
$sections
public
array<string|int, mixed>
$sections
= []
$shouldSyncReserveQuantity
public
bool
$shouldSyncReserveQuantity
= false
$skuTree
public
array<string|int, mixed>
$skuTree
= []
$source
public
ProductRow
$source
$storeAmount
public
float|null
$storeAmount
= null
$storeAvailableAmount
public
float|null
$storeAvailableAmount
= null
$storeName
public
string|null
$storeName
= null
$stores
public
array<string|int, mixed>
$stores
= []
$type
public
int
$type
= self::TYPE_PRODUCT
Methods
__construct()
public
__construct(ProductRow $source, string $currencyId) : mixed
Parameters
- $source : ProductRow
- $currencyId : string
createFromArray()
public
static createFromArray(array<string|int, mixed> $fields) : self
Parameters
- $fields : array<string|int, mixed>
Return values
selfgetId()
public
getId() : int|string
Return values
int|stringgetProductId()
public
getProductId() : int
Return values
inttoArray()
public
toArray() : array<string|int, mixed>