<?php
use \WsdlToPhp\PackageBase\AbstractStructBase;

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