LD_REST_Quiz_Statistics_Controller_V2::make_answer_obj( string $type, array $args = array() )
Build the answer type object and returns it.
Description #
It throws exception for any invalid type which will be caught by callee.
Parameters #
- $type
-
(string) (Required) Type of answer object we want to build.
- $args
-
(array) (Optional) Argument for class constructor.
Default value: array()
Return #
(LDLMS_Answer)
Source #
File: includes/rest-api/v2/class-ld-rest-quiz-statistics-controller.php
Changelog #
Version | Description |
---|---|
3.3.0 | Introduced. |