<?php


namespace App\Classes\Modules\Transactions\Services;

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

class ListsTransactions extends AbstractListRecord
{
    /** @var Transaction */
    private $repository;

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

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