<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetProductsAttributesTypes-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetProductsAttributesTypes-Response
 * @subpackage Structs
 */
class GetProductsAttributesTypes_Response extends AbstractStructBase
{
    /**
     * The AttributesTypes
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfMerchandise_ProductAttributesType
     */
    public $AttributesTypes;
    /**
     * Constructor method for GetProductsAttributesTypes-Response
     * @uses GetProductsAttributesTypes_Response::setAttributesTypes()
     * @param \patest\ArrayType\ArrayOfMerchandise_ProductAttributesType $attributesTypes
     */
    public function __construct(\patest\ArrayType\ArrayOfMerchandise_ProductAttributesType $attributesTypes = null)
    {
        $this
            ->setAttributesTypes($attributesTypes);
    }
    /**
     * Get AttributesTypes 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\ArrayOfMerchandise_ProductAttributesType|null
     */
    public function getAttributesTypes()
    {
        return isset($this->AttributesTypes) ? $this->AttributesTypes : null;
    }
    /**
     * Set AttributesTypes 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\ArrayOfMerchandise_ProductAttributesType $attributesTypes
     * @return \patest\StructType\GetProductsAttributesTypes_Response
     */
    public function setAttributesTypes(\patest\ArrayType\ArrayOfMerchandise_ProductAttributesType $attributesTypes = null)
    {
        if (is_null($attributesTypes) || (is_array($attributesTypes) && empty($attributesTypes))) {
            unset($this->AttributesTypes);
        } else {
            $this->AttributesTypes = $attributesTypes;
        }
        return $this;
    }
}
