This is a class in PHP to interpolation a function