<?php

namespace CustomerManagement\StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for CheckCustomerLoginInput StructType
 * @subpackage Structs
 */
class CheckCustomerLoginInput extends AbstractStructBase
{
    /**
     * The RetrieveLoginInfoOnCollision
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 1
     * - nillable: true
     * @var bool
     */
    public $RetrieveLoginInfoOnCollision;
    /**
     * The LoginName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $LoginName;
    /**
     * The FirstName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $FirstName;
    /**
     * The LastName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $LastName;
    /**
     * The Email
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Email;
    /**
     * The Phone
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var string
     */
    public $Phone;
    /**
     * Constructor method for CheckCustomerLoginInput
     * @uses CheckCustomerLoginInput::setRetrieveLoginInfoOnCollision()
     * @uses CheckCustomerLoginInput::setLoginName()
     * @uses CheckCustomerLoginInput::setFirstName()
     * @uses CheckCustomerLoginInput::setLastName()
     * @uses CheckCustomerLoginInput::setEmail()
     * @uses CheckCustomerLoginInput::setPhone()
     * @param bool $retrieveLoginInfoOnCollision
     * @param string $loginName
     * @param string $firstName
     * @param string $lastName
     * @param string $email
     * @param string $phone
     */
    public function __construct($retrieveLoginInfoOnCollision = null, $loginName = null, $firstName = null, $lastName = null, $email = null, $phone = null)
    {
        $this
            ->setRetrieveLoginInfoOnCollision($retrieveLoginInfoOnCollision)
            ->setLoginName($loginName)
            ->setFirstName($firstName)
            ->setLastName($lastName)
            ->setEmail($email)
            ->setPhone($phone);
    }
    /**
     * Get RetrieveLoginInfoOnCollision value
     * @return bool
     */
    public function getRetrieveLoginInfoOnCollision()
    {
        return $this->RetrieveLoginInfoOnCollision;
    }
    /**
     * Set RetrieveLoginInfoOnCollision value
     * @param bool $retrieveLoginInfoOnCollision
     * @return \CustomerManagement\StructType\CheckCustomerLoginInput
     */
    public function setRetrieveLoginInfoOnCollision($retrieveLoginInfoOnCollision = null)
    {
        // validation for constraint: boolean
        if (!is_null($retrieveLoginInfoOnCollision) && !is_bool($retrieveLoginInfoOnCollision)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($retrieveLoginInfoOnCollision, true), gettype($retrieveLoginInfoOnCollision)), __LINE__);
        }
        $this->RetrieveLoginInfoOnCollision = $retrieveLoginInfoOnCollision;
        return $this;
    }
    /**
     * Get LoginName value
     * @return string|null
     */
    public function getLoginName()
    {
        return $this->LoginName;
    }
    /**
     * Set LoginName value
     * @param string $loginName
     * @return \CustomerManagement\StructType\CheckCustomerLoginInput
     */
    public function setLoginName($loginName = null)
    {
        // validation for constraint: string
        if (!is_null($loginName) && !is_string($loginName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($loginName, true), gettype($loginName)), __LINE__);
        }
        $this->LoginName = $loginName;
        return $this;
    }
    /**
     * Get FirstName value
     * @return string|null
     */
    public function getFirstName()
    {
        return $this->FirstName;
    }
    /**
     * Set FirstName value
     * @param string $firstName
     * @return \CustomerManagement\StructType\CheckCustomerLoginInput
     */
    public function setFirstName($firstName = null)
    {
        // validation for constraint: string
        if (!is_null($firstName) && !is_string($firstName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($firstName, true), gettype($firstName)), __LINE__);
        }
        $this->FirstName = $firstName;
        return $this;
    }
    /**
     * Get LastName value
     * @return string|null
     */
    public function getLastName()
    {
        return $this->LastName;
    }
    /**
     * Set LastName value
     * @param string $lastName
     * @return \CustomerManagement\StructType\CheckCustomerLoginInput
     */
    public function setLastName($lastName = null)
    {
        // validation for constraint: string
        if (!is_null($lastName) && !is_string($lastName)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lastName, true), gettype($lastName)), __LINE__);
        }
        $this->LastName = $lastName;
        return $this;
    }
    /**
     * Get Email value
     * @return string|null
     */
    public function getEmail()
    {
        return $this->Email;
    }
    /**
     * Set Email value
     * @param string $email
     * @return \CustomerManagement\StructType\CheckCustomerLoginInput
     */
    public function setEmail($email = null)
    {
        // validation for constraint: string
        if (!is_null($email) && !is_string($email)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($email, true), gettype($email)), __LINE__);
        }
        $this->Email = $email;
        return $this;
    }
    /**
     * Get Phone value
     * @return string|null
     */
    public function getPhone()
    {
        return $this->Phone;
    }
    /**
     * Set Phone value
     * @param string $phone
     * @return \CustomerManagement\StructType\CheckCustomerLoginInput
     */
    public function setPhone($phone = null)
    {
        // validation for constraint: string
        if (!is_null($phone) && !is_string($phone)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($phone, true), gettype($phone)), __LINE__);
        }
        $this->Phone = $phone;
        return $this;
    }
}
