A generalization of Toeplitz operators on the Bergman space