<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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