. */ namespace SP\Domain\User\In; use SP\Core\Exceptions\ConstraintException; use SP\Core\Exceptions\QueryException; use SP\Domain\Common\In\RepositoryInterface; use SP\Infrastructure\Database\QueryResult; /** * Class UserProfileRepository * * @package SP\Infrastructure\User\Repositories */ interface UserProfileRepositoryInterface extends RepositoryInterface { /** * Obtener el nombre de los usuarios que usan un perfil. * * @param $id int El id del perfil * * @return QueryResult * @throws ConstraintException * @throws QueryException */ public function getUsersForProfile(int $id): QueryResult; }