@@ -23,4 +23,9 @@ interface AccountQueryInterface
      * @return UserId[]
      */
     public function findUserIdByRoleId(RoleId $roleId): array;
+
+    /**
+     * @return array
+     */
+    public function getUsers(): array;
 }
<?php

/**
 * Copyright © Ergonode Sp. z o.o. All rights reserved.
 * See LICENSE.txt for license details.
 */

declare(strict_types=1);

namespace Ergonode\Account\Domain\Query;

use Ergonode\SharedKernel\Domain\Aggregate\RoleId;
use Ergonode\SharedKernel\Domain\Aggregate\UserId;

interface AccountQueryInterface
{
    /**
     * @return array | null
     */
    public function getUser(UserId $userId): ?array;

    /**
     * @return UserId[]
     */
    public function findUserIdByRoleId(RoleId $roleId): array;
}

This brings nothing to the table. Can you specify a type perhaps?