<?php

namespace App\Classes\Modules\Bookings\DataTransferObjects;

use App\Classes\General\Interfaces\DataTransferObject;

class CreatePaymentVerificationDocumentDTO implements DataTransferObject
{
    public int $bookingId;
    public int $companyId;
    public int $paymentId;

    public function __construct(array $data)
    {
        $this->bookingId = $data['booking_id'];
        $this->companyId = $data['company_id'];
        $this->paymentId = $data['payment_id'];
    }

    public function toArray(): array
    {
        return [
            'booking_id' => $this->bookingId,
            'company_id' => $this->companyId,
            'payment_id' => $this->paymentId,
        ];
    }
}
