<?php

namespace App\Classes\Modules\Jobs\Services;


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

class ListsJobResult extends AbstractListRecord
{

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

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


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