Browse: Home / Classes / LD_REST_Quiz_Statistics_Controller_V2 /


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 #


(string) (Required) Type of answer object we want to build.


(array) (Optional) Argument for class constructor.

Default value: array()

Return #


Source #

File: includes/rest-api/v2/class-ld-rest-quiz-statistics-controller.php

Changelog #

Version Description
3.3.0 Introduced.