<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetCorsiUtenteRespone StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetCorsiUtenteRespone
 * @subpackage Structs
 */
class GetCorsiUtenteRespone extends WebService_GenericResult
{
    /**
     * The Corsi
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var ArrayOfCorso
     */
    public $Corsi;
    /**
     * Constructor method for GetCorsiUtenteRespone
     * @uses GetCorsiUtenteRespone::setCorsi()
     * @param ArrayOfCorso $corsi
     */
    public function __construct(ArrayOfCorso $corsi = null)
    {
        $this
            ->setCorsi($corsi);
    }
    /**
     * Get Corsi 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 ArrayOfCorso|null
     */
    public function getCorsi()
    {
        return isset($this->Corsi) ? $this->Corsi : null;
    }
    /**
     * Set Corsi 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 ArrayOfCorso $corsi
     * @return GetCorsiUtenteRespone
     */
    public function setCorsi(ArrayOfCorso $corsi = null)
    {
        if (is_null($corsi) || (is_array($corsi) && empty($corsi))) {
            unset($this->Corsi);
        } else {
            $this->Corsi = $corsi;
        }
        return $this;
    }
}
