ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilQTIFlowMat.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
30{
31 public ?string $comment = null;
33 public array $flow_mat = [];
35 public array $material = [];
36
37 public function setComment(string $a_comment): void
38 {
39 $this->comment = $a_comment;
40 }
41
42 public function getComment(): ?string
43 {
44 return $this->comment;
45 }
46
47 public function addFlowMat(ilQTIFlowMat $a_flow_mat): void
48 {
49 $this->flow_mat[] = $a_flow_mat;
50 }
51
52 public function addMaterial(ilQTIMaterial $material): void
53 {
54 $this->material[] = $material;
55 }
56
57 public function getMaterial(int $index): ?ilQTIMaterial
58 {
59 return $this->material[$index] ?? null;
60 }
61}
setComment(string $a_comment)
getMaterial(int $index)
addMaterial(ilQTIMaterial $material)
addFlowMat(ilQTIFlowMat $a_flow_mat)
Interface ilQTIMaterialAware.