<?php

declare(strict_types=1);

namespace Seka\Vzdelavanie\Models\Testovanie;

use Illuminate\Database\Eloquent\Model;

/**
 * Class Kategoria
 *
 * @package Seka\Vzdelavanie\Models\Testovanie
 */
class Kategoria extends Model
{
    /**
     * @var string
     */
    protected $table = 'vzdelavanie_testovanie_kategorie';

    /**
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function testy()
    {
        return $this->hasMany(Test::class, 'testovanie_kategorie_id', 'id');
    }

    /**
     * @param string      $childType
     * @param mixed       $value
     * @param string|null $field
     *
     * @return \Illuminate\Database\Eloquent\Model|void|null
     */
    public function resolveChildRouteBinding($childType, $value, $field)
    {
        // TODO: Implement resolveChildRouteBinding() method.
    }
}
