<?php

namespace Models;

class OrderbookPaymentModel
{
    private OrderbookModel $orderbookModel;

    public function __construct()
    {
        $this->orderbookModel = new OrderbookModel();
    }

    public function getOrderbookForPayment(int $orderbookId): ?array
    {
        return $this->orderbookModel->findByIdWithToken($orderbookId);
    }
}
