. */ namespace SP\Domain\Account\Ports; use SP\Domain\Common\Models\Item; use SP\Domain\Core\Exceptions\ConstraintException; use SP\Domain\Core\Exceptions\QueryException; use SP\Domain\Core\Exceptions\SPException; /** * Class AccountToUserGroupService */ interface AccountToUserGroupService { /** * @param int $id * * @return Item[] * @throws ConstraintException * @throws QueryException * @throws SPException */ public function getUserGroupsByAccountId(int $id): array; }