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 ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
declare(strict_types=1);
namespace HiEvents\Repository\Interfaces;
use HiEvents\DomainObjects\EventDomainObject;
use HiEvents\Http\DTO\QueryParamsDTO;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
/**
* @extends RepositoryInterface<EventDomainObject>
*/
interface EventRepositoryInterface extends RepositoryInterface
{
public function findEventsForOrganizer(int $organizerId, int $accountId, QueryParamsDTO $params): LengthAwarePaginator;
public function findEvents(
array $where,
QueryParamsDTO $params,
?array $restrictToOrganizerIds = null,
?array $restrictToEventIds = null,
): LengthAwarePaginator;
public function getAllEventsForAdmin(
?string $search = null,
int $perPage = 20,
?string $sortBy = 'start_date',
?string $sortDirection = 'desc'
): LengthAwarePaginator;
public function getSitemapEvents(int $page, int $perPage): LengthAwarePaginator;
public function getSitemapEventCount(): int;
public function findByIdLocked(int $id): EventDomainObject;
public function getUpcomingEventsWithCompletedOrders(int $accountId): Collection;
}