<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetComuni_Result StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetComuni_Result
 * @subpackage Structs
 */
class GetComuni_Result extends AbstractStructBase
{
    /**
     * The Comuni
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var ArrayOfResultCodiceDescrizione
     */
    public $Comuni;
    /**
     * The Informazioni
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var AdditionaInformation
     */
    public $Informazioni;
    /**
     * Constructor method for GetComuni_Result
     * @uses GetComuni_Result::setComuni()
     * @uses GetComuni_Result::setInformazioni()
     * @param ArrayOfResultCodiceDescrizione $comuni
     * @param AdditionaInformation $informazioni
     */
    public function __construct(ArrayOfResultCodiceDescrizione $comuni = null, AdditionaInformation $informazioni = null)
    {
        $this
            ->setComuni($comuni)
            ->setInformazioni($informazioni);
    }
    /**
     * Get Comuni 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 ArrayOfResultCodiceDescrizione|null
     */
    public function getComuni()
    {
        return isset($this->Comuni) ? $this->Comuni : null;
    }
    /**
     * Set Comuni 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 ArrayOfResultCodiceDescrizione $comuni
     * @return GetComuni_Result
     */
    public function setComuni(ArrayOfResultCodiceDescrizione $comuni = null)
    {
        if (is_null($comuni) || (is_array($comuni) && empty($comuni))) {
            unset($this->Comuni);
        } else {
            $this->Comuni = $comuni;
        }
        return $this;
    }
    /**
     * Get Informazioni value
     * @return AdditionaInformation|null
     */
    public function getInformazioni()
    {
        return $this->Informazioni;
    }
    /**
     * Set Informazioni value
     * @param AdditionaInformation $informazioni
     * @return GetComuni_Result
     */
    public function setInformazioni(AdditionaInformation $informazioni = null)
    {
        $this->Informazioni = $informazioni;
        return $this;
    }
}
