<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetMerchandiseItemsPrices-Response StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetMerchandiseItemsPrices-Response
 * @subpackage Structs
 */
class GetMerchandiseItemsPrices_Response extends ExtensibleDataContract
{
    /**
     * The Prices
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var \patest\ArrayType\ArrayOfKeyValueOfguidNullableOfdoubleGOBf0pnW
     */
    public $Prices;
    /**
     * Constructor method for GetMerchandiseItemsPrices-Response
     * @uses GetMerchandiseItemsPrices_Response::setPrices()
     * @param \patest\ArrayType\ArrayOfKeyValueOfguidNullableOfdoubleGOBf0pnW $prices
     */
    public function __construct(\patest\ArrayType\ArrayOfKeyValueOfguidNullableOfdoubleGOBf0pnW $prices = null)
    {
        $this
            ->setPrices($prices);
    }
    /**
     * 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\ArrayOfKeyValueOfguidNullableOfdoubleGOBf0pnW|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\ArrayOfKeyValueOfguidNullableOfdoubleGOBf0pnW $prices
     * @return \patest\StructType\GetMerchandiseItemsPrices_Response
     */
    public function setPrices(\patest\ArrayType\ArrayOfKeyValueOfguidNullableOfdoubleGOBf0pnW $prices = null)
    {
        if (is_null($prices) || (is_array($prices) && empty($prices))) {
            unset($this->Prices);
        } else {
            $this->Prices = $prices;
        }
        return $this;
    }
}
