<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for ProductPricingDescription StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:ProductPricingDescription
 * @subpackage Structs
 */
class ProductPricingDescription extends AbstractStructBase
{
    /**
     * The AxisDescriptions
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfProductPriceAxisDescription
     */
    public $AxisDescriptions;
    /**
     * The PriceModifierDescriptions
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidstring
     */
    public $PriceModifierDescriptions;
    /**
     * The Prices
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValuePairOfArrayOfguidInventoryPricingEntrycX68gwDR
     */
    public $Prices;
    /**
     * The PriceModifierDetails
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidInventoryPriceModifierDetailshpjoQDea
     */
    public $PriceModifierDetails;
    /**
     * Constructor method for ProductPricingDescription
     * @uses ProductPricingDescription::setAxisDescriptions()
     * @uses ProductPricingDescription::setPriceModifierDescriptions()
     * @uses ProductPricingDescription::setPrices()
     * @uses ProductPricingDescription::setPriceModifierDetails()
     * @param \patest\ArrayType\ArrayOfProductPriceAxisDescription $axisDescriptions
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidstring $priceModifierDescriptions
     * @param \patest\ArrayType\ArrayOfKeyValuePairOfArrayOfguidInventoryPricingEntrycX68gwDR $prices
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidInventoryPriceModifierDetailshpjoQDea $priceModifierDetails
     */
    public function __construct(\patest\ArrayType\ArrayOfProductPriceAxisDescription $axisDescriptions = null, \patest\ArrayType\ArrayOfKeyValueOfguidstring $priceModifierDescriptions = null, \patest\ArrayType\ArrayOfKeyValuePairOfArrayOfguidInventoryPricingEntrycX68gwDR $prices = null, \patest\ArrayType\ArrayOfKeyValueOfguidInventoryPriceModifierDetailshpjoQDea $priceModifierDetails = null)
    {
        $this
            ->setAxisDescriptions($axisDescriptions)
            ->setPriceModifierDescriptions($priceModifierDescriptions)
            ->setPrices($prices)
            ->setPriceModifierDetails($priceModifierDetails);
    }
    /**
     * Get AxisDescriptions 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\ArrayOfProductPriceAxisDescription|null
     */
    public function getAxisDescriptions()
    {
        return isset($this->AxisDescriptions) ? $this->AxisDescriptions : null;
    }
    /**
     * Set AxisDescriptions 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\ArrayOfProductPriceAxisDescription $axisDescriptions
     * @return \patest\StructType\ProductPricingDescription
     */
    public function setAxisDescriptions(\patest\ArrayType\ArrayOfProductPriceAxisDescription $axisDescriptions = null)
    {
        if (is_null($axisDescriptions) || (is_array($axisDescriptions) && empty($axisDescriptions))) {
            unset($this->AxisDescriptions);
        } else {
            $this->AxisDescriptions = $axisDescriptions;
        }
        return $this;
    }
    /**
     * 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\ProductPricingDescription
     */
    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 Prices 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\ArrayOfKeyValuePairOfArrayOfguidInventoryPricingEntrycX68gwDR|null
     */
    public function getPrices()
    {
        return isset($this->Prices) ? $this->Prices : null;
    }
    /**
     * Set Prices 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\ArrayOfKeyValuePairOfArrayOfguidInventoryPricingEntrycX68gwDR $prices
     * @return \patest\StructType\ProductPricingDescription
     */
    public function setPrices(\patest\ArrayType\ArrayOfKeyValuePairOfArrayOfguidInventoryPricingEntrycX68gwDR $prices = null)
    {
        if (is_null($prices) || (is_array($prices) && empty($prices))) {
            unset($this->Prices);
        } else {
            $this->Prices = $prices;
        }
        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\ProductPricingDescription
     */
    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;
    }
}
