<?php

namespace App\Classes\Modules\Steps\Services;

use App\Classes\General\Eloquent\AbstractFetchRecord;
use App\Models\Step;
use Illuminate\Database\Eloquent\Builder;
use phpDocumentor\Reflection\Types\AbstractList;

class ListsSteps extends AbstractList
{

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

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


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