<?php

namespace App\Repository\Category;

use App\Entity\Category;

interface CategoryRepositoryInterface
{
    /**
     * @param int $categoryId
     *
     * @return Category
     */
    public function findById(int $categoryId): ?Category;

    /**
     * @param Category $category
     */
    public function save(Category $category): void;

    /**
     * @param Category $category
     */
    public function delete(Category $category): void;

    public function getByTitle(string $title);
}
