<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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