ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilOSDNotificationObject.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
30{
31 public function __construct(
32 protected int $id,
33 protected int $user,
34 protected ilNotificationObject $object,
35 protected ?int $time_added = 0,
36 protected ?int $valid_until = 0,
37 protected ?int $visible_for = 0,
38 protected ?string $type = '',
39 protected ?NotificationIdentification $identification = null
40 ) {
41 }
42
43 public function getId(): int
44 {
45 return $this->id;
46 }
47
48 public function getUser(): int
49 {
50 return $this->user;
51 }
52
54 {
55 return $this->object;
56 }
57
58 public function getValidUntil(): int
59 {
60 return $this->valid_until;
61 }
62
63 public function setValidUntil(int $valid_until): void
64 {
65 $this->valid_until = $valid_until;
66 }
67
68 public function getVisibleFor(): int
69 {
70 return $this->visible_for;
71 }
72
73 public function setVisibleFor(int $visible_for): void
74 {
75 $this->visible_for = $visible_for;
76 }
77
78 public function getTimeAdded(): int
79 {
80 return $this->time_added;
81 }
82
83 public function setTimeAdded(int $time_added): void
84 {
85 $this->time_added = $time_added;
86 }
87
88 public function getType(): string
89 {
90 return $this->type;
91 }
92
93 public function setType(string $type): void
94 {
95 $this->type = $type;
96 }
97
99 {
100 return $this->identification;
101 }
102
103 public function setIdentification(NotificationIdentification $identification): void
104 {
105 $this->identification = $identification;
106 }
107}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
setIdentification(NotificationIdentification $identification)
__construct(protected int $id, protected int $user, protected ilNotificationObject $object, protected ?int $time_added=0, protected ?int $valid_until=0, protected ?int $visible_for=0, protected ?string $type='', protected ?NotificationIdentification $identification=null)