. */ namespace SP\Domain\Account; use SP\Core\Exceptions\ConstraintException; use SP\Core\Exceptions\QueryException; /** * Class AccountFavoriteService * * @package SP\Domain\Account\Services */ interface AccountToFavoriteServiceInterface { /** * Obtener un array con los Ids de cuentas favoritas * * @throws ConstraintException * @throws QueryException */ public function getForUserId(int $id): array; /** * Añadir una cuenta a la lista de favoritos * * @throws ConstraintException * @throws QueryException */ public function add(int $accountId, int $userId): int; /** * Eliminar una cuenta de la lista de favoritos * * @throws ConstraintException * @throws QueryException */ public function delete(int $accountId, int $userId): int; }