. */ 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 AccountToUserService */ interface AccountToUserService { /** * @param int $id * * @return Item[] * @throws ConstraintException * @throws QueryException * @throws SPException */ public function getUsersByAccountId(int $id): array; }