Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

592 B
Raw Blame
<?php

namespace HiEvents\Repository\Interfaces;

use HiEvents\DomainObjects\AnnouncementDomainObject;
use Illuminate\Contracts\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;

/**
 * @extends RepositoryInterface<AnnouncementDomainObject>
 */
interface AnnouncementRepositoryInterface extends RepositoryInterface
{
    public function getAnnouncementsWithCounts(?string $search, int $perPage): LengthAwarePaginator;

    /**
     * @return Collection<int, AnnouncementDomainObject>
     */
    public function findActiveForUser(int $userId, int $accountId): Collection;
}