ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilLSPostCondition.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
15{
19 protected $ref_id;
20
24 protected $operator;
25
29 protected $value;
30
31 public function __construct(
32 int $ref_id,
33 string $operator,
34 $value = null
35 ) {
36 $this->ref_id = $ref_id;
37 $this->operator = $operator;
38 $this->value = $value;
39 }
40
41 public function getRefId() : int
42 {
43 return $this->ref_id;
44 }
45
46
47 public function getConditionOperator() : string
48 {
49 return $this->operator;
50 }
51
53 {
54 $clone = clone $this;
55 $clone->operator = $operator;
56 return $clone;
57 }
58
59 public function getValue()
60 {
61 return $this->value;
62 }
63
65 {
66 $clone = clone $this;
67 $clone->value = $value;
68 return $clone;
69 }
70}
An exception for terminatinating execution or to throw for unit testing.
A PostCondition does restrict the progression of a user through the learning sequence.
__construct(int $ref_id, string $operator, $value=null)
withConditionOperator(string $operator)