<?php

namespace App\Classes\Modules\Announcements\Services;

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

class ListsAnnouncements extends AbstractListRecord
{

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

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


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