<?php

namespace Modules\Category\Repositories\Interfaces;

use Illuminate\Database\Eloquent\Collection;
use Modules\Category\Models\Category;

interface CategoryRepositoryInterface
{
    public function all(): Collection;
    public function find(int $id): ?Category;
    public function findBySlug(string $slug): ?Category;
    public function create(array $data): Category;
    public function update(int $id, array $data): Category;
    public function delete(int $id): bool;
    public function getActive(): Collection;
}
