<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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