<?php

namespace App\Classes\Modules\Accounts\Services;


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

class FetchesUserSocialAccount extends AbstractFetchRecord
{

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

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


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