| Línea 62... |
Línea 62... |
| 62 |
* the second string index is the 'class' that sub-question part can be classified into.
|
62 |
* the second string index is the 'class' that sub-question part can be classified into.
|
| 63 |
* Value in array is instance of {@link \question_possible_response}
|
63 |
* Value in array is instance of {@link \question_possible_response}
|
| 64 |
* This is the return value from {@link \question_type::get_possible_responses()}
|
64 |
* This is the return value from {@link \question_type::get_possible_responses()}
|
| 65 |
* see that method for fuller documentation.
|
65 |
* see that method for fuller documentation.
|
| 66 |
*/
|
66 |
*/
|
| 67 |
public function __construct(array $possiblereponses = null) {
|
67 |
public function __construct(?array $possiblereponses = null) {
|
| 68 |
if ($possiblereponses !== null) {
|
68 |
if ($possiblereponses !== null) {
|
| 69 |
$this->possibleresponses = $possiblereponses;
|
69 |
$this->possibleresponses = $possiblereponses;
|
| 70 |
}
|
70 |
}
|
| 71 |
}
|
71 |
}
|