<?php

namespace App\Integration\Providers\Alliance3\DTO;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for UserInfo DTO
 * @subpackage Structs
 */
class UserInfo extends AbstractStructBase
{
    /**
     * The lastName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $lastName;
    /**
     * The name
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $name;
    /**
     * The middleName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $middleName;
    /**
     * The userName
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $userName;
    /**
     * The personnelNumber
     * Meta information extracted from the WSDL
     * - minOccurs: 0
     * @var string
     */
    public $personnelNumber;
    /**
     * Constructor method for UserInfo
     * @uses UserInfo::setLastName()
     * @uses UserInfo::setName()
     * @uses UserInfo::setMiddleName()
     * @uses UserInfo::setUserName()
     * @uses UserInfo::setPersonnelNumber()
     * @param string $lastName
     * @param string $name
     * @param string $middleName
     * @param string $userName
     * @param string $personnelNumber
     */
    public function __construct($lastName = null, $name = null, $middleName = null, $userName = null, $personnelNumber = null)
    {
        $this
            ->setLastName($lastName)
            ->setName($name)
            ->setMiddleName($middleName)
            ->setUserName($userName)
            ->setPersonnelNumber($personnelNumber);
    }
    /**
     * Get lastName value
     * @return string|null
     */
    public function getLastName()
    {
        return $this->lastName;
    }
    /**
     * Set lastName value
     * @param string $lastName
     * @return \App\Integration\Providers\Alliance3\DTO\UserInfo
     */
    public function setLastName($lastName = null)
    {
        $this->lastName = $lastName;
        return $this;
    }
    /**
     * Get name value
     * @return string|null
     */
    public function getName()
    {
        return $this->name;
    }
    /**
     * Set name value
     * @param string $name
     * @return \App\Integration\Providers\Alliance3\DTO\UserInfo
     */
    public function setName($name = null)
    {
        $this->name = $name;
        return $this;
    }
    /**
     * Get middleName value
     * @return string|null
     */
    public function getMiddleName()
    {
        return $this->middleName;
    }
    /**
     * Set middleName value
     * @param string $middleName
     * @return \App\Integration\Providers\Alliance3\DTO\UserInfo
     */
    public function setMiddleName($middleName = null)
    {
        $this->middleName = $middleName;
        return $this;
    }
    /**
     * Get userName value
     * @return string|null
     */
    public function getUserName()
    {
        return $this->userName;
    }
    /**
     * Set userName value
     * @param string $userName
     * @return \App\Integration\Providers\Alliance3\DTO\UserInfo
     */
    public function setUserName($userName = null)
    {
        $this->userName = $userName;
        return $this;
    }
    /**
     * Get personnelNumber value
     * @return string|null
     */
    public function getPersonnelNumber()
    {
        return $this->personnelNumber;
    }
    /**
     * Set personnelNumber value
     * @param string $personnelNumber
     * @return \App\Integration\Providers\Alliance3\DTO\UserInfo
     */
    public function setPersonnelNumber($personnelNumber = null)
    {
        $this->personnelNumber = $personnelNumber;
        return $this;
    }
}
