<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Alternate_Merchant_Name_DataType StructType
 * Meta information extracted from the WSDL
 * - documentation: Alternate Names for Merchant are entered here.
 * @subpackage Structs
 */
class Alternate_Merchant_Name_DataType extends AbstractStructBase
{
    /**
     * The Alternate_Name_Value
     * Meta information extracted from the WSDL
     * - documentation: Alternate Name Value
     * - maxOccurs: 1
     * @var string
     */
    public $Alternate_Name_Value;
    /**
     * Constructor method for Alternate_Merchant_Name_DataType
     * @uses Alternate_Merchant_Name_DataType::setAlternate_Name_Value()
     * @param string $alternate_Name_Value
     */
    public function __construct($alternate_Name_Value = null)
    {
        $this
            ->setAlternate_Name_Value($alternate_Name_Value);
    }
    /**
     * Get Alternate_Name_Value value
     * @return string|null
     */
    public function getAlternate_Name_Value()
    {
        return $this->Alternate_Name_Value;
    }
    /**
     * Set Alternate_Name_Value value
     * @param string $alternate_Name_Value
     * @return \StructType\Alternate_Merchant_Name_DataType
     */
    public function setAlternate_Name_Value($alternate_Name_Value = null)
    {
        // validation for constraint: string
        if (!is_null($alternate_Name_Value) && !is_string($alternate_Name_Value)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($alternate_Name_Value, true), gettype($alternate_Name_Value)), __LINE__);
        }
        $this->Alternate_Name_Value = $alternate_Name_Value;
        return $this;
    }
}
