<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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