ProductAttributeValues
class ProductAttributeValues implements CostInterface, Serializable
ProductAttributeValues
Properties
| protected int|null | $code | Code to connect product attribute values with ERP representation of entity | |
| protected float|null | $cost | Price of product attribute values | |
| protected string|null | $sku | Sku of product attribute values | |
| protected string|null | $erpCode | Code to connect product attribute values with ERP representation of entity | |
| protected int | $quantity | Available quantity, total quantity decreased by reserved quantity | |
| protected int | $totalQuantity | Total quantity in stock, including reserved quantity | |
| protected int | $reservedQuantity | Reserved quantity | |
| protected int|null | $minQuantity | Minimal quantity that can be added to cart | |
| protected int|null | $taxValue | Tax value for product attribute values | |
| protected int|null | $quantityStep | Product attribute values quantity to add to cart | |
| protected bool|null | $default | Default product attribute value | |
| protected bool | $displayToUser | Show product attribute values fo user | |
| protected string|null | $baseImageUrl | Path to default image | |
| protected float|null | $priceOnAction | Product attribute values action price | |
| protected array|null | $keywords | Product attribute values keywords | |
| protected array|null | $additionalKeywords | Product attribute values additional keywords | |
| protected File | $file | File associated with specific product attribute values | |
| protected ArrayCollection | $attributeValues | List of associated attribute values | |
| protected Product | $product | Main product | |
| protected ArrayCollection | $images | List of associated images | |
| protected ArrayCollection | $orderItems | List of associated order items | |
| protected ArrayCollection | $productAttributeValueFeatures | List of associated features | |
| protected Product | $pavProduct | Proxy for product attribute value representing product. Not fully implemented yet |
Methods
Constructor
No description
No description
Get attributeGroup
Get product
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Increase reserved quantity and decrease available quantity
Decrease reserved quantity and increase available quantity
Increase reserved quantity
Decrease total quantity
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
(PHP 5 >= 5.1.0)
String representation of object
(PHP 5 >= 5.1.0)
Constructs the object
Details
at line 319
__construct()
Constructor
at line 332
ArrayCollection
getOrderItems()
at line 342
ProductAttributeValues
setOrderItems(ArrayCollection $orderItems)
at line 354
ProductAttributeValues
addOrderItem(OrderItem $orderItem)
at line 366
ProductAttributeValues
removeOrderItem(OrderItem $orderItem)
at line 381
ProductAttributeValues
setValue(AttributeValue $attributeValues)
Set attributeValue
at line 393
ArrayCollection
getValue()
Get attributeGroup
at line 405
ProductAttributeValues
setProduct(Product $product)
Set product
at line 417
Product
getProduct()
Get product
at line 425
mixed
getCost()
at line 435
mixed
setCost(mixed $cost)
at line 445
int
getId()
at line 455
ProductAttributeValues
setId(int $id)
at line 465
int|null
getCode()
at line 475
ProductAttributeValues
setCode(int|null $code)
at line 485
null|string
getSku()
at line 495
ProductAttributeValues
setSku(null|string $sku)
at line 505
null|string
getErpCode()
at line 515
ProductAttributeValues
setErpCode(null|string $erpCode)
at line 525
int
getQuantity()
at line 535
ProductAttributeValues
setQuantity(int $quantity)
at line 545
int
getTotalQuantity()
at line 555
ProductAttributeValues
setTotalQuantity(int $totalQuantity)
at line 565
int
getReservedQuantity()
at line 575
ProductAttributeValues
setReservedQuantity(int $reservedQuantity)
at line 585
bool|null
getDefault()
at line 595
ProductAttributeValues
setDefault(bool|null $default)
at line 605
bool
getDisplayToUser()
at line 615
ProductAttributeValues
setDisplayToUser(bool $displayToUser)
at line 625
File
getFile()
at line 635
ProductAttributeValues
setFile(File $file)
at line 645
ArrayCollection
getAttributeValues()
at line 655
ProductAttributeValues
setAttributeValues(ArrayCollection $attributeValue)
at line 668
ProductAttributeValues
addAttributeValue(AttributeValue $attributeValue)
Add $attributeValue
at line 683
ProductAttributeValues
removeAttributeValue(AttributeValue $attributeValue)
Remove $attributeValue
at line 696
int|null
getMinQuantity()
at line 706
ProductAttributeValues
setMinQuantity(int|null $minQuantity)
at line 716
int|null
getQuantityStep()
at line 726
ProductAttributeValues
setQuantityStep(int|null $quantityStep)
at line 739
ProductAttributeValues
increaseReservedQuantity(int $qty)
Increase reserved quantity and decrease available quantity
at line 753
ProductAttributeValues
decreaseReservedQuantity(int $qty)
Decrease reserved quantity and increase available quantity
at line 767
ProductAttributeValues
increaseTotalQuantity(int $qty)
Increase reserved quantity
at line 781
ProductAttributeValues
decreaseTotalQuantity(int $qty)
Decrease total quantity
at line 792
ArrayCollection
getImages()
at line 802
ProductAttributeValues
setImages(ArrayCollection $images)
at line 812
int|null
getTaxValue()
at line 822
ProductAttributeValues
setTaxValue(int|null $taxValue)
at line 834
ProductAttributeValues
addImage(Image $image)
at line 845
null|string
getBaseImageUrl()
at line 855
ProductAttributeValues
setBaseImageUrl(null|string $baseImageUrl)
at line 867
ProductAttributeValues
removeImage(Image $image)
at line 880
ProductAttributeValues
addProductAttributeValueFeature(ProductAttributeValueFeature $productAttributeValueFeature)
at line 893
ProductAttributeValues
removeProductAttributeValueFeature(ProductAttributeValueFeature $productAttributeValueFeature)
at line 904
ArrayCollection
getProductAttributeValueFeatures()
at line 914
ProductAttributeValues
setProductAttributeValueFeatures(ArrayCollection $productAttributeValueFeatures)
at line 924
float|null
getPriceOnAction()
at line 934
ProductAttributeValues
setPriceOnAction(float|null $priceOnAction)
at line 944
Product
getPavProduct()
at line 954
ProductAttributeValues
setPavProduct(Product $pavProduct)
at line 964
array|null
getKeywords()
at line 974
ProductAttributeValues
setKeywords(array $keywords)
at line 984
array|null
getAdditionalKeywords()
at line 994
ProductAttributeValues
setAdditionalKeywords(array|null $additionalKeywords)
at line 1006
bool
hasAttributeValueById(int $id)
at line 1024
string
serialize()
(PHP 5 >= 5.1.0)
String representation of object
at line 1051
void
unserialize(string $serialized)
(PHP 5 >= 5.1.0)
Constructs the object