pagination_helper = new AFASM_Pagination(); $this->number_of_records_per_page = $this->pagination_helper->get_number_of_records_per_page(); } /** * Get all forms * * @since 1.0.0 * * @return array $forms AFA forms */ abstract public function forms(); /** * Get forms by id * * @since 1.0.0 * * @param \WP_REST_Request $request The request. * * @return object $form AFA form */ abstract public function form_by_id( \WP_REST_Request $request ); /** * Get forms with pagination * * @since 1.0.0 * * @param \WP_REST_Request $request The request. * * @return array $forms AFA forms */ abstract public function forms_pagination( \WP_REST_Request $request ); /** * Search forms by name. * * @since 1.0.0 * * @param \WP_REST_Request $request The request. * * @return array $forms AFA forms */ abstract public function search_forms( \WP_REST_Request $request); }