<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ExtraPromptElementAvailableProductsMerchandiseItem
 * StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:ExtraPromptElementAvailableProductsMerchandiseItem
 * @subpackage Structs
 */
class ExtraPromptElementAvailableProductsMerchandiseItem extends ExtraPromptElementAvailableProductsItem
{
    /**
     * The AttributeValues
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidstring
     */
    public $AttributeValues;
    /**
     * Constructor method for ExtraPromptElementAvailableProductsMerchandiseItem
     * @uses ExtraPromptElementAvailableProductsMerchandiseItem::setAttributeValues()
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidstring $attributeValues
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValueOfguidstring $attributeValues = null)
    {
        $this
            ->setAttributeValues($attributeValues);
    }
    /**
     * Get AttributeValues value
     * An additional test has been added (isset) before returning the property value as
     * this property may have been unset before, due to the fact that this property is
     * removable from the request (nillable=true+minOccurs=0)
     * @return \patest\ArrayType\ArrayOfKeyValueOfguidstring|null
     */
    public function getAttributeValues()
    {
        return isset($this->AttributeValues) ? $this->AttributeValues : null;
    }
    /**
     * Set AttributeValues value
     * This property is removable from request (nillable=true+minOccurs=0), therefore
     * if the value assigned to this property is null, it is removed from this object
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidstring $attributeValues
     * @return \patest\StructType\ExtraPromptElementAvailableProductsMerchandiseItem
     */
    public function setAttributeValues(\patest\ArrayType\ArrayOfKeyValueOfguidstring $attributeValues = null)
    {
        if (is_null($attributeValues) || (is_array($attributeValues) && empty($attributeValues))) {
            unset($this->AttributeValues);
        } else {
            $this->AttributeValues = $attributeValues;
        }
        return $this;
    }
}
