<?php

namespace App\Classes\Modules\Transactions\Services;


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

class FetchesTransactionDetail extends AbstractFetchRecord
{

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


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


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