<?php

namespace App\Classes\Modules\Transactions\Services;


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

class FetchesTransaction extends AbstractFetchRecord
{

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


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


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