<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GiftVoucherPricingDescription StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GiftVoucherPricingDescription
 * @subpackage Structs
 */
class GiftVoucherPricingDescription extends AbstractStructBase
{
    /**
     * The PriceModifierDescriptions
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidstring
     */
    public $PriceModifierDescriptions;
    /**
     * The PricingEntry
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\StructType\InventoryPricingEntry
     */
    public $PricingEntry;
    /**
     * The PriceModifierDetails
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidInventoryPriceModifierDetailshpjoQDea
     */
    public $PriceModifierDetails;
    /**
     * Constructor method for GiftVoucherPricingDescription
     * @uses GiftVoucherPricingDescription::setPriceModifierDescriptions()
     * @uses GiftVoucherPricingDescription::setPricingEntry()
     * @uses GiftVoucherPricingDescription::setPriceModifierDetails()
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidstring $priceModifierDescriptions
     * @param \patest\StructType\InventoryPricingEntry $pricingEntry
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidInventoryPriceModifierDetailshpjoQDea $priceModifierDetails
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValueOfguidstring $priceModifierDescriptions = null, \patest\StructType\InventoryPricingEntry $pricingEntry = null, \patest\ArrayType\ArrayOfKeyValueOfguidInventoryPriceModifierDetailshpjoQDea $priceModifierDetails = null)
    {
        $this
            ->setPriceModifierDescriptions($priceModifierDescriptions)
            ->setPricingEntry($pricingEntry)
            ->setPriceModifierDetails($priceModifierDetails);
    }
    /**
     * Get PriceModifierDescriptions 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 getPriceModifierDescriptions()
    {
        return isset($this->PriceModifierDescriptions) ? $this->PriceModifierDescriptions : null;
    }
    /**
     * Set PriceModifierDescriptions 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 $priceModifierDescriptions
     * @return \patest\StructType\GiftVoucherPricingDescription
     */
    public function setPriceModifierDescriptions(\patest\ArrayType\ArrayOfKeyValueOfguidstring $priceModifierDescriptions = null)
    {
        if (is_null($priceModifierDescriptions) || (is_array($priceModifierDescriptions) && empty($priceModifierDescriptions))) {
            unset($this->PriceModifierDescriptions);
        } else {
            $this->PriceModifierDescriptions = $priceModifierDescriptions;
        }
        return $this;
    }
    /**
     * Get PricingEntry 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\StructType\InventoryPricingEntry|null
     */
    public function getPricingEntry()
    {
        return isset($this->PricingEntry) ? $this->PricingEntry : null;
    }
    /**
     * Set PricingEntry 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\StructType\InventoryPricingEntry $pricingEntry
     * @return \patest\StructType\GiftVoucherPricingDescription
     */
    public function setPricingEntry(\patest\StructType\InventoryPricingEntry $pricingEntry = null)
    {
        if (is_null($pricingEntry) || (is_array($pricingEntry) && empty($pricingEntry))) {
            unset($this->PricingEntry);
        } else {
            $this->PricingEntry = $pricingEntry;
        }
        return $this;
    }
    /**
     * Get PriceModifierDetails 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\ArrayOfKeyValueOfguidInventoryPriceModifierDetailshpjoQDea|null
     */
    public function getPriceModifierDetails()
    {
        return isset($this->PriceModifierDetails) ? $this->PriceModifierDetails : null;
    }
    /**
     * Set PriceModifierDetails 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\ArrayOfKeyValueOfguidInventoryPriceModifierDetailshpjoQDea $priceModifierDetails
     * @return \patest\StructType\GiftVoucherPricingDescription
     */
    public function setPriceModifierDetails(\patest\ArrayType\ArrayOfKeyValueOfguidInventoryPriceModifierDetailshpjoQDea $priceModifierDetails = null)
    {
        if (is_null($priceModifierDetails) || (is_array($priceModifierDetails) && empty($priceModifierDetails))) {
            unset($this->PriceModifierDetails);
        } else {
            $this->PriceModifierDetails = $priceModifierDetails;
        }
        return $this;
    }
}
