<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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