<?php

namespace App\Classes\Modules\Wallets\Services;


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

class FetchesWallet extends AbstractFetchRecord
{

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


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


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