<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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