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 ⭐️

737 B
Raw Blame
<?php

namespace HiEvents\Enterprise\BoxOffice\Repository\Interfaces;

use HiEvents\DomainObjects\BoxOfficeDomainObject;
use HiEvents\Http\DTO\QueryParamsDTO;
use HiEvents\Repository\Interfaces\RepositoryInterface;
use Illuminate\Pagination\LengthAwarePaginator;

/**
 * @extends RepositoryInterface<BoxOfficeDomainObject>
 */
interface BoxOfficeRepositoryInterface extends RepositoryInterface
{
    public function findByEventId(int $eventId, QueryParamsDTO $params): LengthAwarePaginator;

    public function existsInUseForUpcomingEvent(?int $accountId): bool;

    /**
     * @return string[]
     */
    public function findNamesSellingOnlyProduct(int $productId): array;

    public function detachProduct(int $productId): void;
}