<?php
namespace Fifa\ConnectId\Sdk\Model\DataStandard;

/**
 * Class LocalPersonName
 * @package Fifa\ConnectId\Sdk\Model\DataStandard
 */
class LocalPersonName
{
    /**
     * @var string
     * @required
     */
    public $Language;

    /**
     * @var string
     * @required
     */
    public $LastName;

    /**
     * @var string
     */
    public $Title;

    /**
     * @var string
     */
    public $FirstName;

    /**
     * @var string
     */
    public $BirthName;

    /**
     * @var string
     */
    public $PopularName;

    /**
     * LocalPersonName constructor.
     *
     * @param string $Language
     * @param string $LastName
     */
    public function __construct(string $Language, string $LastName)
    {
        $this->Language = $Language;
        $this->LastName = $LastName;
    }

    /**
     * @return string
     */
    public function __toString()
    {
        return sprintf(
            'Language: %s, Title: %s, FirstName: %s, LastName: %s, BirthName: %s, PopularName: %s',
            $this->Language, $this->Title, $this->FirstName, $this->LastName, $this->BirthName, $this->PopularName
        );
    }
}