ILIAS  release_7 Revision v7.30-3-g800a261c036
hasAmount.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
21
30interface hasAmount
31{
37 public function withOldAmount(int $amount = 0) : StandardNotification;
38
44 public function withNewAmount(int $amount = 0) : StandardNotification;
45
50 public function getOldAmount() : int;
51
56 public function getNewAmount() : int;
57}
An exception for terminatinating execution or to throw for unit testing.
Class Notification The default Notification mapping currently to one UI Notification Item component.
Interface hasAmount Items can implicitly contain a various amount of news.
Definition: hasAmount.php:31
withOldAmount(int $amount=0)
Set the amount of old notes, the notification contains.
getOldAmount()
Get the amount of new notes, the notification contains.
withNewAmount(int $amount=0)
Set the amount of new notes, the notification contains.
getNewAmount()
Get the amount of new notes, the notification contains.