<?php

namespace App\Classes\Modules\Accounting\Services;


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

class FetchesBankStatementDetails extends AbstractFetchRecord
{

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


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


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