<?php
/**
 * Created by PhpStorm.
 * User: radko
 * Date: 23.7.18
 * Time: 16:04
 */

namespace Seka\Vzdelavanie\Services;

use Illuminate\Support\Collection;

/**
 * Interface UcebnyTextServiceInterface
 * @package Seka\Vzdelavanie\Services
 */
interface UcebnicaServiceInterface extends ServiceInterface
{
    /**
     * @param array $udaje
     * @return mixed
     */
    public function vytvorit(array $udaje);

    /**
     * @param bool $zoskupitPodlaKategorie
     * @return mixed
     */
    public function vratZoznamUcebnychTextov(bool $zoskupitPodlaKategorie = false);

    /**
     * @param int $id
     * @return mixed
     * @throws \Seka\Vzdelavanie\Repositories\Exceptions\ModelNotFoundException
     */
    public function vratUcebnyText(int $id);

    /**
     * @param int $id
     * @return mixed
     */
    public function odstranit(int $id);

    /**
     * @param string $text
     * @return \Illuminate\Support\Collection
     */
    public function vyhladaj(string $text): Collection;
}
