<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for GetLastPresenza_Result StructType
 * Meta information extracted from the WSDL
 * - nillable: true
 * - type: tns:GetLastPresenza_Result
 * @subpackage Structs
 */
class GetLastPresenza_Result extends AbstractStructBase
{
    /**
     * The Informazioni
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var AdditionaInformation
     */
    public $Informazioni;
    /**
     * The Presenza
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * - nillable: true
     * @var Presenza
     */
    public $Presenza;
    /**
     * Constructor method for GetLastPresenza_Result
     * @uses GetLastPresenza_Result::setInformazioni()
     * @uses GetLastPresenza_Result::setPresenza()
     * @param AdditionaInformation $informazioni
     * @param Presenza $presenza
     */
    public function __construct(AdditionaInformation $informazioni = null, Presenza $presenza = null)
    {
        $this
            ->setInformazioni($informazioni)
            ->setPresenza($presenza);
    }
    /**
     * Get Informazioni value
     * @return AdditionaInformation|null
     */
    public function getInformazioni()
    {
        return $this->Informazioni;
    }
    /**
     * Set Informazioni value
     * @param AdditionaInformation $informazioni
     * @return GetLastPresenza_Result
     */
    public function setInformazioni(AdditionaInformation $informazioni = null)
    {
        $this->Informazioni = $informazioni;
        return $this;
    }
    /**
     * Get Presenza 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 Presenza|null
     */
    public function getPresenza()
    {
        return isset($this->Presenza) ? $this->Presenza : null;
    }
    /**
     * Set Presenza 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 Presenza $presenza
     * @return GetLastPresenza_Result
     */
    public function setPresenza(Presenza $presenza = null)
    {
        if (is_null($presenza) || (is_array($presenza) && empty($presenza))) {
            unset($this->Presenza);
        } else {
            $this->Presenza = $presenza;
        }
        return $this;
    }
}
