ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.assAnswerMatchingPair.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
28{
31 protected float $points;
32
33 public function __construct(
36 float $points = 0.0
37 ) {
38 $this->term = $term;
39 $this->definition = $definition;
40 $this->points = $points;
41 }
42
43 public function getTerm(): assAnswerMatchingTerm
44 {
45 return $this->term;
46 }
47 public function withTerm(assAnswerMatchingTerm $term): self
48 {
49 $clone = clone $this;
50 $clone->term = $term;
51 return $clone;
52 }
53
55 {
56 return $this->definition;
57 }
59 {
60 $clone = clone $this;
61 $clone->definition = $definition;
62 return $clone;
63 }
64
65 public function getPoints(): float
66 {
67 return $this->points;
68 }
69 public function withPoints(float $points): self
70 {
71 $clone = clone $this;
72 $clone->points = $points;
73 return $clone;
74 }
75}
Class for matching question definitions.
Class for matching question pairs.
assAnswerMatchingDefinition $definition
withTerm(assAnswerMatchingTerm $term)
withDefinition(assAnswerMatchingDefinition $definition)
__construct(assAnswerMatchingTerm $term, assAnswerMatchingDefinition $definition, float $points=0.0)
Class for matching question terms.