<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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