<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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