<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for Legal_Name_DataType StructType
 * Meta information extracted from the WSDL
 * - documentation: Contains the legal name for a person. A person must name one and only one legal name.
 * @subpackage Structs
 */
class Legal_Name_DataType extends AbstractStructBase
{
    /**
     * The Name_Detail_Data
     * Meta information extracted from the WSDL
     * - documentation: Contains the components of a name, such as the First Name and Last Name.
     * @var \StructType\Person_Name_Detail_DataType
     */
    public $Name_Detail_Data;
    /**
     * Constructor method for Legal_Name_DataType
     * @uses Legal_Name_DataType::setName_Detail_Data()
     * @param \StructType\Person_Name_Detail_DataType $name_Detail_Data
     */
    public function __construct(\StructType\Person_Name_Detail_DataType $name_Detail_Data = null)
    {
        $this
            ->setName_Detail_Data($name_Detail_Data);
    }
    /**
     * Get Name_Detail_Data value
     * @return \StructType\Person_Name_Detail_DataType|null
     */
    public function getName_Detail_Data()
    {
        return $this->Name_Detail_Data;
    }
    /**
     * Set Name_Detail_Data value
     * @param \StructType\Person_Name_Detail_DataType $name_Detail_Data
     * @return \StructType\Legal_Name_DataType
     */
    public function setName_Detail_Data(\StructType\Person_Name_Detail_DataType $name_Detail_Data = null)
    {
        $this->Name_Detail_Data = $name_Detail_Data;
        return $this;
    }
}
