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

__construct()

Constructor

ArrayCollection
getOrderItems()

No description

setOrderItems(ArrayCollection $orderItems)

No description

addOrderItem(OrderItem $orderItem)

No description

removeOrderItem(OrderItem $orderItem)

No description

setValue(AttributeValue $attributeValues)

Set attributeValue

ArrayCollection
getValue()

Get attributeGroup

setProduct(Product $product)

Set product

getProduct()

Get product

mixed
getCost()

No description

mixed
setCost(mixed $cost)

No description

int
getId()

No description

setId(int $id)

No description

int|null
getCode()

No description

setCode(int|null $code)

No description

null|string
getSku()

No description

setSku(null|string $sku)

No description

null|string
getErpCode()

No description

setErpCode(null|string $erpCode)

No description

int
getQuantity()

No description

setQuantity(int $quantity)

No description

int
getTotalQuantity()

No description

setTotalQuantity(int $totalQuantity)

No description

int
getReservedQuantity()

No description

setReservedQuantity(int $reservedQuantity)

No description

bool|null
getDefault()

No description

setDefault(bool|null $default)

No description

bool
getDisplayToUser()

No description

setDisplayToUser(bool $displayToUser)

No description

getFile()

No description

setFile(File $file)

No description

ArrayCollection
getAttributeValues()

No description

setAttributeValues(ArrayCollection $attributeValue)

No description

addAttributeValue(AttributeValue $attributeValue)

Add $attributeValue

removeAttributeValue(AttributeValue $attributeValue)

Remove $attributeValue

int|null
getMinQuantity()

No description

setMinQuantity(int|null $minQuantity)

No description

int|null
getQuantityStep()

No description

setQuantityStep(int|null $quantityStep)

No description

increaseReservedQuantity(int $qty)

Increase reserved quantity and decrease available quantity

decreaseReservedQuantity(int $qty)

Decrease reserved quantity and increase available quantity

increaseTotalQuantity(int $qty)

Increase reserved quantity

decreaseTotalQuantity(int $qty)

Decrease total quantity

ArrayCollection
getImages()

No description

setImages(ArrayCollection $images)

No description

int|null
getTaxValue()

No description

setTaxValue(int|null $taxValue)

No description

addImage(Image $image)

No description

null|string
getBaseImageUrl()

No description

setBaseImageUrl(null|string $baseImageUrl)

No description

removeImage(Image $image)

No description

ArrayCollection
setProductAttributeValueFeatures(ArrayCollection $productAttributeValueFeatures)

No description

float|null
getPriceOnAction()

No description

setPriceOnAction(float|null $priceOnAction)

No description

getPavProduct()

No description

setPavProduct(Product $pavProduct)

No description

array|null
getKeywords()

No description

setKeywords(array $keywords)

No description

array|null
getAdditionalKeywords()

No description

setAdditionalKeywords(array|null $additionalKeywords)

No description

bool
hasAttributeValueById(int $id)

No description

string
serialize()

(PHP 5 >= 5.1.0)
String representation of object

void
unserialize(string $serialized)

(PHP 5 >= 5.1.0)
Constructs the object

Details

at line 319
__construct()

Constructor

at line 332
ArrayCollection getOrderItems()

Return Value

ArrayCollection

at line 342
ProductAttributeValues setOrderItems(ArrayCollection $orderItems)

Parameters

ArrayCollection $orderItems

Return Value

ProductAttributeValues

at line 354
ProductAttributeValues addOrderItem(OrderItem $orderItem)

Parameters

OrderItem $orderItem

Return Value

ProductAttributeValues

at line 366
ProductAttributeValues removeOrderItem(OrderItem $orderItem)

Parameters

OrderItem $orderItem

Return Value

ProductAttributeValues

at line 381
ProductAttributeValues setValue(AttributeValue $attributeValues)

Set attributeValue

Parameters

AttributeValue $attributeValues

Return Value

ProductAttributeValues

at line 393
ArrayCollection getValue()

Get attributeGroup

Return Value

ArrayCollection

at line 405
ProductAttributeValues setProduct(Product $product)

Set product

Parameters

Product $product

Return Value

ProductAttributeValues

at line 417
Product getProduct()

Get product

Return Value

Product

at line 425
mixed getCost()

Return Value

mixed

at line 435
mixed setCost(mixed $cost)

Parameters

mixed $cost

Return Value

mixed

at line 445
int getId()

Return Value

int

at line 455
ProductAttributeValues setId(int $id)

Parameters

int $id

Return Value

ProductAttributeValues

at line 465
int|null getCode()

Return Value

int|null

at line 475
ProductAttributeValues setCode(int|null $code)

Parameters

int|null $code

Return Value

ProductAttributeValues

at line 485
null|string getSku()

Return Value

null|string

at line 495
ProductAttributeValues setSku(null|string $sku)

Parameters

null|string $sku

Return Value

ProductAttributeValues

at line 505
null|string getErpCode()

Return Value

null|string

at line 515
ProductAttributeValues setErpCode(null|string $erpCode)

Parameters

null|string $erpCode

Return Value

ProductAttributeValues

at line 525
int getQuantity()

Return Value

int

at line 535
ProductAttributeValues setQuantity(int $quantity)

Parameters

int $quantity

Return Value

ProductAttributeValues

at line 545
int getTotalQuantity()

Return Value

int

at line 555
ProductAttributeValues setTotalQuantity(int $totalQuantity)

Parameters

int $totalQuantity

Return Value

ProductAttributeValues

at line 565
int getReservedQuantity()

Return Value

int

at line 575
ProductAttributeValues setReservedQuantity(int $reservedQuantity)

Parameters

int $reservedQuantity

Return Value

ProductAttributeValues

at line 585
bool|null getDefault()

Return Value

bool|null

at line 595
ProductAttributeValues setDefault(bool|null $default)

Parameters

bool|null $default

Return Value

ProductAttributeValues

at line 605
bool getDisplayToUser()

Return Value

bool

at line 615
ProductAttributeValues setDisplayToUser(bool $displayToUser)

Parameters

bool $displayToUser

Return Value

ProductAttributeValues

at line 625
File getFile()

Return Value

File

at line 635
ProductAttributeValues setFile(File $file)

Parameters

File $file

Return Value

ProductAttributeValues

at line 645
ArrayCollection getAttributeValues()

Return Value

ArrayCollection

at line 655
ProductAttributeValues setAttributeValues(ArrayCollection $attributeValue)

Parameters

ArrayCollection $attributeValue

Return Value

ProductAttributeValues

at line 668
ProductAttributeValues addAttributeValue(AttributeValue $attributeValue)

Add $attributeValue

Parameters

AttributeValue $attributeValue

Return Value

ProductAttributeValues

at line 683
ProductAttributeValues removeAttributeValue(AttributeValue $attributeValue)

Remove $attributeValue

Parameters

AttributeValue $attributeValue

Return Value

ProductAttributeValues

at line 696
int|null getMinQuantity()

Return Value

int|null

at line 706
ProductAttributeValues setMinQuantity(int|null $minQuantity)

Parameters

int|null $minQuantity

Return Value

ProductAttributeValues

at line 716
int|null getQuantityStep()

Return Value

int|null

at line 726
ProductAttributeValues setQuantityStep(int|null $quantityStep)

Parameters

int|null $quantityStep

Return Value

ProductAttributeValues

at line 739
ProductAttributeValues increaseReservedQuantity(int $qty)

Increase reserved quantity and decrease available quantity

Parameters

int $qty

Return Value

ProductAttributeValues

at line 753
ProductAttributeValues decreaseReservedQuantity(int $qty)

Decrease reserved quantity and increase available quantity

Parameters

int $qty

Return Value

ProductAttributeValues

at line 767
ProductAttributeValues increaseTotalQuantity(int $qty)

Increase reserved quantity

Parameters

int $qty

Return Value

ProductAttributeValues

at line 781
ProductAttributeValues decreaseTotalQuantity(int $qty)

Decrease total quantity

Parameters

int $qty

Return Value

ProductAttributeValues

at line 792
ArrayCollection getImages()

Return Value

ArrayCollection

at line 802
ProductAttributeValues setImages(ArrayCollection $images)

Parameters

ArrayCollection $images

Return Value

ProductAttributeValues

at line 812
int|null getTaxValue()

Return Value

int|null

at line 822
ProductAttributeValues setTaxValue(int|null $taxValue)

Parameters

int|null $taxValue

Return Value

ProductAttributeValues

at line 834
ProductAttributeValues addImage(Image $image)

Parameters

Image $image

Return Value

ProductAttributeValues

at line 845
null|string getBaseImageUrl()

Return Value

null|string

at line 855
ProductAttributeValues setBaseImageUrl(null|string $baseImageUrl)

Parameters

null|string $baseImageUrl

Return Value

ProductAttributeValues

at line 867
ProductAttributeValues removeImage(Image $image)

Parameters

Image $image

Return Value

ProductAttributeValues

at line 880
ProductAttributeValues addProductAttributeValueFeature(ProductAttributeValueFeature $productAttributeValueFeature)

Parameters

ProductAttributeValueFeature $productAttributeValueFeature

Return Value

ProductAttributeValues

at line 893
ProductAttributeValues removeProductAttributeValueFeature(ProductAttributeValueFeature $productAttributeValueFeature)

Parameters

ProductAttributeValueFeature $productAttributeValueFeature

Return Value

ProductAttributeValues

at line 904
ArrayCollection getProductAttributeValueFeatures()

Return Value

ArrayCollection

at line 914
ProductAttributeValues setProductAttributeValueFeatures(ArrayCollection $productAttributeValueFeatures)

Parameters

ArrayCollection $productAttributeValueFeatures

Return Value

ProductAttributeValues

at line 924
float|null getPriceOnAction()

Return Value

float|null

at line 934
ProductAttributeValues setPriceOnAction(float|null $priceOnAction)

Parameters

float|null $priceOnAction

Return Value

ProductAttributeValues

at line 944
Product getPavProduct()

Return Value

Product

at line 954
ProductAttributeValues setPavProduct(Product $pavProduct)

Parameters

Product $pavProduct

Return Value

ProductAttributeValues

at line 964
array|null getKeywords()

Return Value

array|null

at line 974
ProductAttributeValues setKeywords(array $keywords)

Parameters

array $keywords

Return Value

ProductAttributeValues

at line 984
array|null getAdditionalKeywords()

Return Value

array|null

at line 994
ProductAttributeValues setAdditionalKeywords(array|null $additionalKeywords)

Parameters

array|null $additionalKeywords

Return Value

ProductAttributeValues

at line 1006
bool hasAttributeValueById(int $id)

Parameters

int $id

Return Value

bool

at line 1024
string serialize()

(PHP 5 >= 5.1.0)
String representation of object

Return Value

string the string representation of the object or null

at line 1051
void unserialize(string $serialized)

(PHP 5 >= 5.1.0)
Constructs the object

Parameters

string $serialized The string representation of the object.

Return Value

void