[doc] Added a class to wrap hook functions