<?php
/**
 * Created by PhpStorm.
 * User: radko
 * Date: 19.11.18
 * Time: 13:56
 */

namespace Seka\Vzdelavanie\Composers;

use Seka\Vzdelavanie\Services\KategoriaServiceInterface;

/**
 * Class ZoznamUcebnychMaterialovPodlaKategoriiComposer
 * @package Seka\Vzdelavanie\Composers
 */
class ZoznamUcebnychMaterialovPodlaKategoriiComposer
{
    /**
     * @var \Seka\Vzdelavanie\Services\KategoriaServiceInterface
     */
    private $service;

    /**
     * ZoznamKategoriiComposer constructor.
     * @param \Seka\Vzdelavanie\Services\KategoriaServiceInterface $service
     */
    public function __construct(KategoriaServiceInterface $service)
    {
        $this->service = $service;
    }

    /**
     * @param $view
     */
    public function compose($view)
    {
        $view->kategorie = $this->service->vratVsetkySUcebnymiMaterialmi(3);
    }
}
