src/Services/Contracts/CategoryServiceContracts.php
<?php
namespace EscolaLms\Categories\Services\Contracts;
use EscolaLms\Categories\Dtos\CategoryDto;
use EscolaLms\Categories\Dtos\CategorySortDto;
use EscolaLms\Categories\Models\Category;
interface CategoryServiceContracts
{
public function getList(?string $search = null);
public function find(int $id);
public function store(CategoryDto $categoryDto): Category;
public function update(int $id, CategoryDto $categoryDto): Category;
public function delete(int $id): void;
public function slugify(string $name): string;
public function allCategoriesAndChildrenIds(array $categoryIds): array;
public function sort(CategorySortDto $dto): void;
}