<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetConfigurazioneResponse StructType
 * @subpackage Structs
 */
class GetConfigurazioneResponse extends AbstractStructBase
{
    /**
     * The GetConfigurazioneResult
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var GetConfigurazione_Result
     */
    public $GetConfigurazioneResult;
    /**
     * Constructor method for GetConfigurazioneResponse
     * @uses GetConfigurazioneResponse::setGetConfigurazioneResult()
     * @param GetConfigurazione_Result $getConfigurazioneResult
     */
    public function __construct(GetConfigurazione_Result $getConfigurazioneResult = null)
    {
        $this
            ->setGetConfigurazioneResult($getConfigurazioneResult);
    }
    /**
     * Get GetConfigurazioneResult 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 GetConfigurazione_Result|null
     */
    public function getGetConfigurazioneResult()
    {
        return isset($this->GetConfigurazioneResult) ? $this->GetConfigurazioneResult : null;
    }
    /**
     * Set GetConfigurazioneResult 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 GetConfigurazione_Result $getConfigurazioneResult
     * @return GetConfigurazioneResponse
     */
    public function setGetConfigurazioneResult(GetConfigurazione_Result $getConfigurazioneResult = null)
    {
        if (is_null($getConfigurazioneResult) || (is_array($getConfigurazioneResult) && empty($getConfigurazioneResult))) {
            unset($this->GetConfigurazioneResult);
        } else {
            $this->GetConfigurazioneResult = $getConfigurazioneResult;
        }
        return $this;
    }
}
