ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilLearningSequenceActivation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 protected int $ref_id;
27 protected bool $online;
28 protected bool $effective_online;
29 protected ?\DateTime $activation_start;
30 protected ?\DateTime $activation_end;
31
32 public function __construct(
33 int $ref_id,
34 bool $online = false,
35 bool $effective_online = false,
36 ?\DateTime $activation_start = null,
37 ?\DateTime $activation_end = null
38 ) {
39 $this->ref_id = $ref_id;
40 $this->online = $online;
41 $this->effective_online = $effective_online;
42 $this->activation_start = $activation_start;
43 $this->activation_end = $activation_end;
44 }
45
46 public function getRefId(): int
47 {
48 return $this->ref_id;
49 }
50
51 public function getIsOnline(): bool
52 {
53 return $this->online;
54 }
55
57 {
58 $clone = clone $this;
59 $clone->online = $online;
60 return $clone;
61 }
62
63 public function getEffectiveOnlineStatus(): bool
64 {
66 }
67
68 public function getActivationStart(): ?\DateTime
69 {
71 }
72
74 {
75 $clone = clone $this;
76 $clone->activation_start = $activation_start;
77 return $clone;
78 }
79
80 public function getActivationEnd(): ?\DateTime
81 {
83 }
84
86 {
87 $clone = clone $this;
88 $clone->activation_end = $activation_end;
89 return $clone;
90 }
91}
__construct(int $ref_id, bool $online=false, bool $effective_online=false, ?\DateTime $activation_start=null, ?\DateTime $activation_end=null)
withActivationStart(?\DateTime $activation_start=null)
withActivationEnd(?\DateTime $activation_end=null)