ILIAS  release_8 Revision v8.24
class.ilQTIFlowMat.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
31{
32 public ?string $comment = null;
34 public array $flow_mat = [];
36 public array $material = [];
37
38 public function setComment(string $a_comment): void
39 {
40 $this->comment = $a_comment;
41 }
42
43 public function getComment(): ?string
44 {
45 return $this->comment;
46 }
47
48 public function addFlowMat(ilQTIFlowMat $a_flow_mat): void
49 {
50 $this->flow_mat[] = $a_flow_mat;
51 }
52
53 public function addMaterial(ilQTIMaterial $material): void
54 {
55 $this->material[] = $material;
56 }
57
58 public function getMaterial(int $index): ?ilQTIMaterial
59 {
60 return $this->material[$index] ?? null;
61 }
62}
setComment(string $a_comment)
getMaterial(int $index)
addMaterial(ilQTIMaterial $material)
addFlowMat(ilQTIFlowMat $a_flow_mat)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$index
Definition: metadata.php:145