<?php

namespace Fifa\ConnectId\Sdk\Model;

use Fifa\ConnectId\Sdk\Api\Model\HashedNameType;
use Fifa\ConnectId\Sdk\Api\Model\PersonType;

/**
 * Class HashedPersonType
 *
 * @package     Fifa\ConnectId\Sdk\Model
 */
class HashedPersonType
{
    /**
     * A list of hashes generated by the FIFA hashing service.
     * @var HashedNameType[]
     */
    private $nameHashes;

    /**
     * A person data that can be stored in central system.
     * @var PersonType
     */
    private $person;

    /**
     * Local identifier of person
     * @var string
     */
    private $localId;

    /**
     * Gets name hashes
     * @return ?HashedNameType[]
     */
    public function getNameHashes(): ?array
    {
        return $this->nameHashes;
    }

    /**
     * Sets name hashes
     * @param ?HashedNameType[] $name_hashes A list of hashes generated by the FIFA hashing service
     * @return $this
     */
    public function setNameHashes(?array $name_hashes): HashedPersonType
    {
        $this->nameHashes = $name_hashes;

        return $this;
    }

    /**
     * Gets person
     * @return ?PersonType
     */
    public function getPerson(): ?PersonType
    {
        return $this->person;
    }

    /**
     * Sets person
     * @param ?PersonType $person A person data that can be stored in central system
     * @return $this
     */
    public function setPerson(?PersonType $person): HashedPersonType
    {
        $this->person = $person;

        return $this;
    }

    /**
     * Gets local_id
     * @return ?string
     */
    public function getLocalId(): ?string
    {
        return $this->localId;
    }

    /**
     * Sets local_id
     * @param ?string $local_id Local identifier of person
     * @return $this
     */
    public function setLocalId(?string $local_id): HashedPersonType
    {
        $this->localId = $local_id;

        return $this;
    }
}


