<?php
namespace App\Models;

class DealPayment
{
    public $id;
    public $deal_didar_id;
    public $payment_type;
    public $payment_status;
    public $payment_amount;
    public $receipt_date;
    public $cheque_due_date;
    public $cheque_cashed_date;
    public $reference_no;
    public $notes;
    public $created_by_user_id;
    public $created_at;
    public $updated_at;

    public function __construct(array $data = [])
    {
        foreach ($data as $key => $value) {
            if (property_exists($this, $key)) {
                $this->$key = $value;
            }
        }
    }

    public function toArray(): array
    {
        return get_object_vars($this);
    }
}
