From d22da878f19cd9e8bbf199b076d9d4aa247dfa1d Mon Sep 17 00:00:00 2001 From: Shamim Rezaie Date: Wed, 27 Sep 2023 22:59:04 +1000 Subject: [PATCH] MDL-79486 qbank_columnsortorder: Document get_data_from_datamethod --- .../bank/columnsortorder/tests/column_manager_test.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/question/bank/columnsortorder/tests/column_manager_test.php b/question/bank/columnsortorder/tests/column_manager_test.php index 1f8d5050a1c..bff2d5df975 100644 --- a/question/bank/columnsortorder/tests/column_manager_test.php +++ b/question/bank/columnsortorder/tests/column_manager_test.php @@ -97,6 +97,13 @@ class column_manager_test extends advanced_testcase { ]; } + /** + * Retrieve data using the specified method. + * This function is used to retrieve data from various data methods defined within this class. + * + * @param array|string $datamethod This can be either a function name or an array containing the class and method name. + * @return array|string The retrieved data as an array or string, depending on the data method used. + */ protected function get_data_from_datamethod(array|string $datamethod): array|string { return call_user_func($datamethod); }