<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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