<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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