<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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