<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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