ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
StandardNotification.php
Go to the documentation of this file.
2
3use ILIAS\UI\Component\Item\Notification as NotificationItem;
4
13{
14
28 private $old_amount = 0;
36 private $new_amount = 1;
37
38
45 {
46 $clone = clone $this;
47 $clone->notification_item = $notification_item;
48
49 return $clone;
50 }
51
52
56 public function getNotificationItem() : NotificationItem
57 {
59 }
60
61
65 public function withOldAmount(int $amount = 0) : StandardNotification
66 {
67 $clone = clone $this;
68 $clone->old_amount = $amount;
69
70 return $clone;
71 }
72
73
77 public function withNewAmount(int $amount = 0) : StandardNotification
78 {
79 $clone = clone $this;
80 $clone->new_amount = $amount;
81
82 return $clone;
83 }
84
85
89 public function getOldAmount() : int
90 {
91 return $this->old_amount;
92 }
93
94
98 public function getNewAmount() : int
99 {
100 return $this->new_amount;
101 }
102}
An exception for terminatinating execution or to throw for unit testing.
getNewAmount()
Get the amount of new notes, the notification contains.int
withNewAmount(int $amount=0)
Set the amount of new notes, the notification contains.StandardNotification
getOldAmount()
Get the amount of new notes, the notification contains.int
withOldAmount(int $amount=0)
Set the amount of old notes, the notification contains.StandardNotification
Interface hasAmount Items can implicitly contain a various amount of news.
Definition: hasAmount.php:13