<?php

namespace patest\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

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