ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Test\Results\Data\AttemptResult Class Reference
+ Collaboration diagram for ILIAS\Test\Results\Data\AttemptResult:

Public Member Functions

 __construct (private int $active_id, private int $attempt_id, private float $max_points, private float $reached_points, private int $question_count, private int $answered_questions, private int $working_time, private int $timestamp, private string $exam_id, private string $finalized_by,)
 
 withMaxPoints (float $max_points)
 
 withQuestionCount (int $question_count)
 
 withWorkingTime (int $working_time)
 
 withExamId (string $exam_id)
 
 withTimestamp (int $timestamp=-1)
 
 getActiveId ()
 
 getAttempt ()
 
 getMaxPoints ()
 
 getReachedPoints ()
 
 getQuestionCount ()
 
 getAnsweredQuestions ()
 
 getWorkingTime ()
 
 getTimestamp ()
 
 getExamId ()
 
 getFinalizedBy ()
 

Detailed Description

Definition at line 23 of file AttemptResult.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Test\Results\Data\AttemptResult::__construct ( private int  $active_id,
private int  $attempt_id,
private float  $max_points,
private float  $reached_points,
private int  $question_count,
private int  $answered_questions,
private int  $working_time,
private int  $timestamp,
private string  $exam_id,
private string  $finalized_by 
)

Definition at line 25 of file AttemptResult.php.

36 {
37 }

Member Function Documentation

◆ getActiveId()

ILIAS\Test\Results\Data\AttemptResult::getActiveId ( )

Definition at line 74 of file AttemptResult.php.

74 : int
75 {
76 return $this->active_id;
77 }

◆ getAnsweredQuestions()

ILIAS\Test\Results\Data\AttemptResult::getAnsweredQuestions ( )

Definition at line 99 of file AttemptResult.php.

99 : int
100 {
101 return $this->answered_questions;
102 }

◆ getAttempt()

ILIAS\Test\Results\Data\AttemptResult::getAttempt ( )

Definition at line 79 of file AttemptResult.php.

79 : int
80 {
81 return $this->attempt_id;
82 }

◆ getExamId()

ILIAS\Test\Results\Data\AttemptResult::getExamId ( )

Definition at line 114 of file AttemptResult.php.

114 : string
115 {
116 return $this->exam_id;
117 }

◆ getFinalizedBy()

ILIAS\Test\Results\Data\AttemptResult::getFinalizedBy ( )

Definition at line 119 of file AttemptResult.php.

119 : string
120 {
121 return $this->finalized_by;
122 }

◆ getMaxPoints()

ILIAS\Test\Results\Data\AttemptResult::getMaxPoints ( )

Definition at line 84 of file AttemptResult.php.

84 : float
85 {
86 return $this->max_points;
87 }

◆ getQuestionCount()

ILIAS\Test\Results\Data\AttemptResult::getQuestionCount ( )

Definition at line 94 of file AttemptResult.php.

94 : int
95 {
96 return $this->question_count;
97 }

◆ getReachedPoints()

ILIAS\Test\Results\Data\AttemptResult::getReachedPoints ( )

Definition at line 89 of file AttemptResult.php.

89 : float
90 {
91 return $this->reached_points;
92 }

◆ getTimestamp()

ILIAS\Test\Results\Data\AttemptResult::getTimestamp ( )

Definition at line 109 of file AttemptResult.php.

109 : int
110 {
111 return $this->timestamp;
112 }
foreach($mandatory_scripts as $file) $timestamp
Definition: buildRTE.php:70

References $timestamp.

◆ getWorkingTime()

ILIAS\Test\Results\Data\AttemptResult::getWorkingTime ( )

Definition at line 104 of file AttemptResult.php.

104 : int
105 {
106 return $this->working_time;
107 }

◆ withExamId()

ILIAS\Test\Results\Data\AttemptResult::withExamId ( string  $exam_id)

Definition at line 60 of file AttemptResult.php.

60 : self
61 {
62 $clone = clone $this;
63 $clone->exam_id = $exam_id;
64 return $clone;
65 }

◆ withMaxPoints()

ILIAS\Test\Results\Data\AttemptResult::withMaxPoints ( float  $max_points)

Definition at line 39 of file AttemptResult.php.

39 : self
40 {
41 $clone = clone $this;
42 $clone->max_points = $max_points;
43 return $clone;
44 }

◆ withQuestionCount()

ILIAS\Test\Results\Data\AttemptResult::withQuestionCount ( int  $question_count)

Definition at line 46 of file AttemptResult.php.

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

◆ withTimestamp()

ILIAS\Test\Results\Data\AttemptResult::withTimestamp ( int  $timestamp = -1)

Definition at line 67 of file AttemptResult.php.

67 : self
68 {
69 $clone = clone $this;
70 $clone->timestamp = $timestamp > 0 ? $timestamp : time();
71 return $clone;
72 }

References $timestamp.

◆ withWorkingTime()

ILIAS\Test\Results\Data\AttemptResult::withWorkingTime ( int  $working_time)

Definition at line 53 of file AttemptResult.php.

53 : self
54 {
55 $clone = clone $this;
56 $clone->working_time = $working_time;
57 return $clone;
58 }

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