<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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