<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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