MDL-81525 mod_quiz: Add missing docs

This commit is contained in:
Andrew Nicols 2024-04-14 21:51:01 +08:00
parent ae48b9525a
commit 532be67b73
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14
2 changed files with 3 additions and 0 deletions

View File

@ -36,7 +36,9 @@ class attempt_state_changed {
* @param ?\stdClass $updatedattempt The updated database record of the new attempt, null if it has just been deleted.
*/
public function __construct(
/** @var ?\stdClass The original database record for the attempt, null if it has just been created. */
protected ?\stdClass $originalattempt,
/** @var ?\stdClass The updated database record of the new attempt, null if it has just been deleted. */
protected ?\stdClass $updatedattempt,
) {
if (is_null($this->originalattempt) && is_null($this->updatedattempt)) {

View File

@ -36,6 +36,7 @@ class structure_modified {
* @param structure $structure The new structure.
*/
public function __construct(
/** @var structure The new structure */
protected structure $structure
) {
}