<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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