<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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