<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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