<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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