<?php

namespace App\Classes\Modules\Jobs\Services;


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

class FetchesJobResult extends AbstractFetchRecord
{

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

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


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