<?php

namespace GLS;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for adeLogin Struct
 * Meta information extracted from the WSDL
 * - type: tns:adeLogin
 * @subpackage Structs
 */
class AdeLogin extends AbstractStructBase
{
    /**
     * The user_name
     * @var string
     */
    public $user_name;
    /**
     * The user_password
     * @var string
     */
    public $user_password;
    /**
     * Constructor method for adeLogin
     * @uses AdeLogin::setUser_name()
     * @uses AdeLogin::setUser_password()
     * @param string $user_name
     * @param string $user_password
     */
    public function __construct($user_name = null, $user_password = null)
    {
        $this
            ->setUser_name($user_name)
            ->setUser_password($user_password);
    }
    /**
     * Get user_name value
     * @return string|null
     */
    public function getUser_name()
    {
        return $this->user_name;
    }
    /**
     * Set user_name value
     * @param string $user_name
     * @return \GLS\AdeLogin
     */
    public function setUser_name($user_name = null)
    {
        // validation for constraint: string
        if (!is_null($user_name) && !is_string($user_name)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($user_name, true), gettype($user_name)), __LINE__);
        }
        $this->user_name = $user_name;
        return $this;
    }
    /**
     * Get user_password value
     * @return string|null
     */
    public function getUser_password()
    {
        return $this->user_password;
    }
    /**
     * Set user_password value
     * @param string $user_password
     * @return \GLS\AdeLogin
     */
    public function setUser_password($user_password = null)
    {
        // validation for constraint: string
        if (!is_null($user_password) && !is_string($user_password)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($user_password, true), gettype($user_password)), __LINE__);
        }
        $this->user_password = $user_password;
        return $this;
    }
}
