<?php

namespace App\Interfaces;

use App\Models\News;
use Illuminate\Pagination\LengthAwarePaginator;

interface NewsRepositoryInterface
{
    public function paginate(int $perPage = 15, ?string $category = null): LengthAwarePaginator;
    public function findById(int $id): ?News;
    public function create(array $data): News;
    public function update(int $id, array $data): bool;
    public function delete(int $id): bool;
}
