<?php

declare(strict_types=1);

namespace Seka\Vzdelavanie\Models\Testovanie;

use Illuminate\Database\Eloquent\Model;

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

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function otazka()
    {
        return $this->belongsTo(Otazka::class, 'testovanie_otazky_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.
    }
}
