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

811 B
Raw Blame
<?php

declare(strict_types=1);

namespace HiEvents\Repository\Interfaces;

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

/**
 * @extends RepositoryInterface<UserDomainObject>
 */
interface UserRepositoryInterface extends RepositoryInterface
{
    public function findByIdAndAccountId(int $userId, int $accountId): UserDomainObject;

    public function findUsersByAccountId(int $accountId): ?Collection;

    public function getAllUsersWithAccounts(?string $search, int $perPage): LengthAwarePaginator;

    /**
     * @return Collection<int, UserDomainObject>
     */
    public function findByEmailIgnoringCase(string $email): Collection;

    public function countWithoutSingleSignOnExcludingSuperAdmins(): int;
}