<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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