<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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