<?php

declare(strict_types=1);

namespace App\Service\Content;

use App\Entity\Content\Type;

interface TypeRepositoryInterface
{
    /**
     * @param int $id
     *
     * @return Type
     */
    public function findById(int $id): ?Type;

    /**
     * @param Type $type
     */
    public function save(Type $type): void;

    /**
     * @param Type $type
     */
    public function delete(Type $type): void;
}
