Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • AdminHttpViewControllers
  • ApiV2Controllers
  • Authentication
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Strategies
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Storages
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Extensions
    • Customers
    • Emails
    • Helpers
    • Invoices
    • Orders
    • Serializers
    • Templates
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • HttpViewControllers
  • InfoBox
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
  • Invoice
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • Modules
    • Collections
    • Controllers
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Precheck
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • ClassFinder
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • SharedShoppingCart
    • Interfaces
  • Slider
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • ProductAttribute
  • StoredProductAttribute

Class ProductAttribute

Class ProductAttribute

ProductAttribute implements ProductAttributeInterface

Direct known subclasses

StoredProductAttribute

Package: ProductModule\Entities
Category: System
Located at Services/Core/ProductModule/Entities/ProductAttribute.inc.php

Methods summary

public
# __construct( IdType $optionId, IdType $valueId )

Initialize the product attribute.

Initialize the product attribute.

Parameters

$optionId
Option id of product attribute.
$valueId
Option value id of product attribute.
public integer
# getOptionId( )

Returns the option id of the product attribute.

Returns the option id of the product attribute.

Returns

integer
Option id of product attribute.

Implementation of

ProductAttributeInterface::getOptionId()
public ProductAttribute|ProductAttribute
# setOptionId( IdType $optionId )

Sets the option id of the product attribute.

Sets the option id of the product attribute.

Parameters

$optionId
Option id of product attribute.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setOptionId()
public integer
# getOptionValueId( )

Returns option value id of the product attribute.

Returns option value id of the product attribute.

Returns

integer
Option value id of product attribute.

Implementation of

ProductAttributeInterface::getOptionValueId()
public ProductAttribute|ProductAttribute
# setOptionValueId( IdType $optionValueId )

Sets the option value id.

Sets the option value id.

Parameters

$optionValueId
Option value id of product attribute.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setOptionValueId()
public float
# getPrice( )

Returns the price of the product attribute.

Returns the price of the product attribute.

Returns

float
Price of product attribute.

Implementation of

ProductAttributeInterface::getPrice()
public ProductAttribute|ProductAttribute
# setPrice( DecimalType $price )

Sets the price of the product attribute.

Sets the price of the product attribute.

Parameters

$price
New price of product attribute.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setPrice()
public string
# getPriceType( )

Returns the price type of the product attribute.

Returns the price type of the product attribute.

Returns

string
Price type of product attribute.

Implementation of

ProductAttributeInterface::getPriceType()
public ProductAttribute|ProductAttribute
# setPriceType( StringType $priceType )

Sets the price type of the product attribute.

Sets the price type of the product attribute.

Parameters

$priceType
New price type.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setPriceType()
public float
# getWeight( )

Returns the weight of the product attribute.

Returns the weight of the product attribute.

Returns

float
Weight of product attribute.

Implementation of

ProductAttributeInterface::getWeight()
public ProductAttribute|ProductAttribute
# setWeight( DecimalType $weight )

Sets the weight of the product attribute.

Sets the weight of the product attribute.

Parameters

$weight
New weight.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setWeight()
public string
# getWeightType( )

Returns the weight type of the product attribute.

Returns the weight type of the product attribute.

Returns

string
Weight type of product attribute.

Implementation of

ProductAttributeInterface::getWeightType()
public ProductAttribute|ProductAttribute
# setWeightType( StringType $weightType )

Sets the weight type of the product attribute.

Sets the weight type of the product attribute.

Parameters

$weightType
New weight type.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setWeightType()
public string
# getAttributeModel( )

Returns the attribute model of the product attribute.

Returns the attribute model of the product attribute.

Returns

string
Model of product attribute.

Implementation of

ProductAttributeInterface::getAttributeModel()
public ProductAttribute|ProductAttribute
# setAttributeModel( StringType $attributeModel )

Sets the attribute model of the product attribute.

Sets the attribute model of the product attribute.

Parameters

$attributeModel
New attribute model.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setAttributeModel()
public string
# getAttributeEan( )

Returns the ean of the product attribute.

Returns the ean of the product attribute.

Returns

string
Ean of product attribute.

Implementation of

ProductAttributeInterface::getAttributeEan()
public ProductAttribute|ProductAttribute
# setAttributeEan( StringType $attributeEan )

Sets the ean of the product attribute.

Sets the ean of the product attribute.

Parameters

$attributeEan
New ean.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setAttributeEan()
public float
# getStock( )

Returns the stock of the product attribute.

Returns the stock of the product attribute.

Returns

float
Stock of product attribute.

Implementation of

ProductAttributeInterface::getStock()
public ProductAttribute|ProductAttribute
# setStock( DecimalType $stock )

Sets the stock of the product attribute.

Sets the stock of the product attribute.

Parameters

$stock
New stock

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setStock()
public integer
# getSortOrder( )

Returns the sort order of the product attribute.

Returns the sort order of the product attribute.

Returns

integer
Sort order of product attribute.

Implementation of

ProductAttributeInterface::getSortOrder()
public ProductAttribute|ProductAttribute
# setSortOrder( IntType $sortOrder )

Sets the sort order of the product attribute.

Sets the sort order of the product attribute.

Parameters

$sortOrder
New sort order position.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setSortOrder()
public integer
# getVpeId( )

Returns the vpe id of the product attribute.

Returns the vpe id of the product attribute.

Returns

integer
Vpe id of product attribute.

Implementation of

ProductAttributeInterface::getVpeId()
public ProductAttribute|ProductAttribute
# setVpeId( IdType $vpeId )

Sets the vpe id of the product attribute.

Sets the vpe id of the product attribute.

Parameters

$vpeId
New vpe id.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setVpeId()
public float
# getVpeValue( )

Returns the product vpe value of the product attribute.

Returns the product vpe value of the product attribute.

Returns

float
Vpe value of product attribute.

Implementation of

ProductAttributeInterface::getVpeValue()
public ProductAttribute|ProductAttribute
# setVpeValue( DecimalType $vpeValue )

Sets the vpe value of the product attribute.

Sets the vpe value of the product attribute.

Parameters

$vpeValue
New vpe value.

Returns

ProductAttribute|ProductAttribute
$this Same instance for chained method calls.

Implementation of

ProductAttributeInterface::setVpeValue()

Properties summary

protected integer $optionId
# 0
protected integer $optionValueId
# 0
protected float $price
# 0.0
protected string $priceType
# ''
protected float $weight
# 0.0
protected string $weightType
# ''
protected string $attributeModel
# ''
protected string $attributeEan
# ''
protected float $stock
# 0.0
protected integer $sortOrder
# 0
protected integer $vpeId
# 0
protected float $vpeValue
# 0.0
API documentation generated by ApiGen