<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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