ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
assAnswerMatchingPair Class Reference

Class for matching question pairs. More...

+ Collaboration diagram for assAnswerMatchingPair:

Public Member Functions

 __construct (assAnswerMatchingTerm $term, assAnswerMatchingDefinition $definition, float $points=0.0)
 
 getTerm ()
 
 withTerm (assAnswerMatchingTerm $term)
 
 getDefinition ()
 
 withDefinition (assAnswerMatchingDefinition $definition)
 
 getPoints ()
 
 withPoints (float $points)
 

Protected Attributes

assAnswerMatchingTerm $term
 
assAnswerMatchingDefinition $definition
 
float $points
 

Detailed Description

Class for matching question pairs.

Author
Helmut Schottmüller helmu.nosp@m.t.sc.nosp@m.hottm.nosp@m.uell.nosp@m.er@ma.nosp@m.c.co.nosp@m.m \

Definition at line 27 of file class.assAnswerMatchingPair.php.

Constructor & Destructor Documentation

◆ __construct()

assAnswerMatchingPair::__construct ( assAnswerMatchingTerm  $term,
assAnswerMatchingDefinition  $definition,
float  $points = 0.0 
)

Definition at line 33 of file class.assAnswerMatchingPair.php.

37 {
38 $this->term = $term;
39 $this->definition = $definition;
40 $this->points = $points;
41 }
assAnswerMatchingDefinition $definition

References $definition, $points, and $term.

Member Function Documentation

◆ getDefinition()

assAnswerMatchingPair::getDefinition ( )

Definition at line 54 of file class.assAnswerMatchingPair.php.

55 {
56 return $this->definition;
57 }
Class for matching question definitions.

References $definition.

Referenced by assMatchingQuestion\getCorrectSolutionForTextOutput().

+ Here is the caller graph for this function:

◆ getPoints()

assAnswerMatchingPair::getPoints ( )

Definition at line 65 of file class.assAnswerMatchingPair.php.

65 : float
66 {
67 return $this->points;
68 }

References $points.

◆ getTerm()

assAnswerMatchingPair::getTerm ( )

Definition at line 43 of file class.assAnswerMatchingPair.php.

44 {
45 return $this->term;
46 }
Class for matching question terms.

References $term.

Referenced by assMatchingQuestion\getCorrectSolutionForTextOutput().

+ Here is the caller graph for this function:

◆ withDefinition()

assAnswerMatchingPair::withDefinition ( assAnswerMatchingDefinition  $definition)

Definition at line 58 of file class.assAnswerMatchingPair.php.

58 : self
59 {
60 $clone = clone $this;
61 $clone->definition = $definition;
62 return $clone;
63 }

References $definition.

◆ withPoints()

assAnswerMatchingPair::withPoints ( float  $points)

Definition at line 69 of file class.assAnswerMatchingPair.php.

69 : self
70 {
71 $clone = clone $this;
72 $clone->points = $points;
73 return $clone;
74 }

References $points.

◆ withTerm()

assAnswerMatchingPair::withTerm ( assAnswerMatchingTerm  $term)

Definition at line 47 of file class.assAnswerMatchingPair.php.

47 : self
48 {
49 $clone = clone $this;
50 $clone->term = $term;
51 return $clone;
52 }

References $term.

Field Documentation

◆ $definition

assAnswerMatchingDefinition assAnswerMatchingPair::$definition
protected

Definition at line 30 of file class.assAnswerMatchingPair.php.

Referenced by __construct(), getDefinition(), and withDefinition().

◆ $points

float assAnswerMatchingPair::$points
protected

Definition at line 31 of file class.assAnswerMatchingPair.php.

Referenced by __construct(), getPoints(), and withPoints().

◆ $term

assAnswerMatchingTerm assAnswerMatchingPair::$term
protected

Definition at line 29 of file class.assAnswerMatchingPair.php.

Referenced by __construct(), getTerm(), and withTerm().


The documentation for this class was generated from the following file: