# ProductVariationValue

class ProductVariationValue extends DataModel

Product variation value model. Each product defines its own variations and variation values.

## Properties

protected array | $fields |  | from DataModel
protected boolean | $isEncrypted |  | from DataModel
protected Identity | $id |  |
protected Identity | $productVariationId |  |
protected string | $ean |  |
protected double | $extraWeight |  |
protected string | $sku |  |
protected integer | $sort |  |
protected double | $stockLevel |  |
protected ProductVariationValueExtraCharge[] | $extraCharges |  |
protected ProductVariationValueI18n[] | $i18ns |  |
protected ProductVariationValueInvisibility[] | $invisibilities |  |

## Methods

__construct()

Constructor

multitype:
getProperties()

Get the Model Properties

from Model
Model
setOptions(stdClass $object = null, array $options = null)

Sets Properties with matching Array Values

from DataModel
stdClass
getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))

Convert the Model into stdClass Object

from DataModel
toJson()

No description

from Model
mixed:string
getFields()

Fields Getter

from DataModel
validate()

Object Validation

from DataModel
mixed:string|NULL
getField(boolean $toWawi = false, string $key)

Get a Model Member Name

from DataModel
map(boolean $toWawi = false, stdClass $obj = null)

Object Mapping

from DataModel
DataType
getModelType()

No description

from DataModel
boolean
isEncrypted()

Encrypted Status

from DataModel
setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)

No description

from DataModel
setProperty($name, $value, $type)

No description

from DataModel
validateType($value, $type)

No description

from DataModel
ProductVariationValue
setId(Identity $id)

No description

Identity
getId()

No description

ProductVariationValue
setProductVariationId(Identity $productVariationId)

No description

Identity
getProductVariationId()

No description

ProductVariationValue
setEan(string $ean)

No description

string
getEan()

No description

ProductVariationValue
setExtraWeight(double $extraWeight)

No description

double
getExtraWeight()

No description

ProductVariationValue
setSku(string $sku)

No description

string
getSku()

No description

ProductVariationValue
setSort(integer $sort)

No description

integer
getSort()

No description

ProductVariationValue
setStockLevel(double $stockLevel)

No description

double
getStockLevel()

No description

ProductVariationValue
addExtraCharge(ProductVariationValueExtraCharge $extraCharge)

No description

ProductVariationValue
setExtraCharges(array $extraCharges)

No description

ProductVariationValueExtraCharge[]
getExtraCharges()

No description

ProductVariationValue
clearExtraCharges()

No description

ProductVariationValue
addI18n(ProductVariationValueI18n $i18n)

No description

ProductVariationValue
setI18ns(array $i18ns)

No description

ProductVariationValueI18n[]
getI18ns()

No description

ProductVariationValue
clearI18ns()

No description

ProductVariationValue
addInvisibility(ProductVariationValueInvisibility $invisibility)

No description

ProductVariationValue
setInvisibilities(array $invisibilities)

No description

ProductVariationValueInvisibility[]
getInvisibilities()

No description

ProductVariationValue
clearInvisibilities()

No description

## Details

###
at line 107
`__construct()`

Constructor

###
in Model at line 33
`multitype: getProperties()`

Get the Model Properties

#### Return Value

multitype: | string

###
in DataModel at line 172
`Model setOptions(stdClass $object = null, array $options = null)`

Sets Properties with matching Array Values

#### Parameters

stdClass | $object |
array | $options |

#### Return Value

Model |

###
in DataModel at line 70
`stdClass getPublic(array $publics = array('fields', 'isEncrypted', 'identities', '_type'))`

Convert the Model into stdClass Object

#### Parameters

array | $publics |

#### Return Value

stdClass | $object

###
in Model at line 115
`toJson()`

###
in DataModel at line 35
`mixed:string getFields()`

Fields Getter

#### Return Value

mixed:string |

###
in DataModel at line 45
`validate()`

Object Validation

#### Exceptions

SchemaException |

###
in DataModel at line 59
`mixed:string|NULL getField(boolean $toWawi = false, string $key)`

Get a Model Member Name

#### Parameters

boolean | $toWawi |
string | $key |

#### Return Value

mixed:string|NULL |

###
in DataModel at line 81
`map(boolean $toWawi = false, stdClass $obj = null)`

Object Mapping

#### Parameters

boolean | $toWawi |
stdClass | $obj | Object to map

###
in DataModel at line 42
`DataType getModelType()`

#### Return Value

DataType |

###
in DataModel at line 59
`boolean isEncrypted()`

Encrypted Status

#### Return Value

boolean |

###
in DataModel at line 123
`setIdentity(string $propertyName, string|null $endpoint = null, int|null $host = null)`

#### Parameters

string | $propertyName |
string|null | $endpoint |
int|null | $host |

###
in DataModel at line 179
`protected setProperty($name, $value, $type)`

#### Parameters

| $name |
| $value |
| $type |

###
in DataModel at line 190
`protected validateType($value, $type)`

#### Parameters

| $value |
| $type |

###
at line 118
`ProductVariationValue setId(Identity $id)`

#### Parameters

Identity | $id | Unique productVariationValue id

#### Return Value

ProductVariationValue |

#### Exceptions

InvalidArgumentException | if the provided argument is not of type 'Identity'.

###
at line 126
`Identity getId()`

#### Return Value

Identity | Unique productVariationValue id

###
at line 136
`ProductVariationValue setProductVariationId(Identity $productVariationId)`

#### Parameters

Identity | $productVariationId | Reference to productVariation

#### Return Value

ProductVariationValue |

#### Exceptions

InvalidArgumentException | if the provided argument is not of type 'Identity'.

###
at line 144
`Identity getProductVariationId()`

#### Return Value

Identity | Reference to productVariation

###
at line 153
`ProductVariationValue setEan(string $ean)`

#### Parameters

string | $ean |

#### Return Value

ProductVariationValue |

###
at line 161
`string getEan()`

#### Return Value

string |

###
at line 170
`ProductVariationValue setExtraWeight(double $extraWeight)`

#### Parameters

double | $extraWeight | Optional variation extra weight

#### Return Value

ProductVariationValue |

###
at line 178
`double getExtraWeight()`

#### Return Value

double | Optional variation extra weight

###
at line 187
`ProductVariationValue setSku(string $sku)`

#### Parameters

string | $sku | Optional Stock Keeping Unit

#### Return Value

ProductVariationValue |

###
at line 195
`string getSku()`

#### Return Value

string | Optional Stock Keeping Unit

###
at line 204
`ProductVariationValue setSort(integer $sort)`

#### Parameters

integer | $sort | Optional sort number

#### Return Value

ProductVariationValue |

###
at line 212
`integer getSort()`

#### Return Value

integer | Optional sort number

###
at line 221
`ProductVariationValue setStockLevel(double $stockLevel)`

#### Parameters

double | $stockLevel | Optional stock level

#### Return Value

ProductVariationValue |

###
at line 229
`double getStockLevel()`

#### Return Value

double | Optional stock level

###
at line 238
`ProductVariationValue addExtraCharge(ProductVariationValueExtraCharge $extraCharge)`

#### Parameters

ProductVariationValueExtraCharge | $extraCharge |

#### Return Value

ProductVariationValue |

###
at line 248
`ProductVariationValue setExtraCharges(array $extraCharges)`

#### Parameters

array | $extraCharges |

#### Return Value

ProductVariationValue |

###
at line 257
`ProductVariationValueExtraCharge[] getExtraCharges()`

#### Return Value

ProductVariationValueExtraCharge[] |

###
at line 265
`ProductVariationValue clearExtraCharges()`

#### Return Value

ProductVariationValue |

###
at line 275
`ProductVariationValue addI18n(ProductVariationValueI18n $i18n)`

#### Parameters

ProductVariationValueI18n | $i18n |

#### Return Value

ProductVariationValue |

###
at line 285
`ProductVariationValue setI18ns(array $i18ns)`

#### Parameters

array | $i18ns |

#### Return Value

ProductVariationValue |

###
at line 294
`ProductVariationValueI18n[] getI18ns()`

#### Return Value

ProductVariationValueI18n[] |

###
at line 302
`ProductVariationValue clearI18ns()`

#### Return Value

ProductVariationValue |

###
at line 312
`ProductVariationValue addInvisibility(ProductVariationValueInvisibility $invisibility)`

#### Parameters

ProductVariationValueInvisibility | $invisibility |

#### Return Value

ProductVariationValue |

###
at line 322
`ProductVariationValue setInvisibilities(array $invisibilities)`

#### Parameters

array | $invisibilities |

#### Return Value

ProductVariationValue |

###
at line 331
`ProductVariationValueInvisibility[] getInvisibilities()`

#### Return Value

ProductVariationValueInvisibility[] |

###
at line 339
`ProductVariationValue clearInvisibilities()`

#### Return Value

ProductVariationValue |