<?php

namespace App\Classes\Modules\HelpMenu\Services;

use App\Classes\General\Eloquent\AbstractFetchRecord;
use Illuminate\Database\Eloquent\Builder;
use App\Models\QAQuestions;

class FetchesHelpMenuQuestion extends AbstractFetchRecord
{

    /** @var QAQuestions */
    private $repository;

    /**
     * FetchesHelpMenuQuestion constructor.
     * @param QAQuestions $repository
     */
    public function __construct(QAQuestions $repository)
    {
        $this->repository = $repository;
    }


    /**
     * @return Builder
     */
    public function getRepository(): Builder
    {
        return $this->repository->newQuery();
    }
}
