<?php

namespace Modules\Section\Repositories\Interfaces;

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

interface SectionRepositoryInterface
{
    public function all(): Collection;
    public function find(int $id): ?Section;
    public function findByKey(string $key): ?Section;
    public function create(array $data): Section;
    public function update(int $id, array $data): Section;
    public function delete(int $id): bool;
    public function getActive(): Collection;
}
