<?php
namespace App\Repositories;

class OrderItemRepository extends BaseRepository
{
    protected string $table = 'order_items';

    public function findByOrder(int $orderId): array
    {
        return $this->db->select(
            "SELECT * FROM `{$this->table}` WHERE `order_id` = :oid",
            ['oid' => $orderId]
        );
    }
}
