<?php
namespace App\Repositories;

class MobileImageRepository extends BaseRepository
{
    protected string $table = 'mobile_images';

    public function findByMobile(int $mobileId): array
    {
        return $this->db->select(
            "SELECT * FROM `{$this->table}` WHERE `mobile_id` = :mid ORDER BY `id` ASC",
            ['mid' => $mobileId]
        );
    }
}
