<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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