ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilLSPostCondition.php
Go to the documentation of this file.
1 <?php
2 
3 declare(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 
64  public function withValue($value) : ilLSPostCondition
65  {
66  $clone = clone $this;
67  $clone->value = $value;
68  return $clone;
69  }
70 }
__construct(int $ref_id, string $operator, $value=null)
withConditionOperator(string $operator)
A PostCondition does restrict the progression of a user through the learning sequence.