<?php

namespace ThePay\ApiClient\Model;

class PaymentIdentificator
{
    /** @var string  */
    private $uid;
    /** @var int */
    private $projectId;

    /**
     * @param array<string, mixed> $data
     */
    public function __construct(array $data)
    {
        $this->uid = $data['uid'];
        $this->projectId = $data['project_id'];
    }

    /**
     * @return string
     */
    public function getUid()
    {
        return $this->uid;
    }

    /**
     * @return int
     */
    public function getProjectId()
    {
        return $this->projectId;
    }

    /**
     * @return array<string, mixed>
     */
    public function toArray()
    {
        return [
            'uid' => $this->uid,
            'projectId' => $this->projectId,
        ];
    }
}
