<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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