Made callback for preg_replace_callback a class method