<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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