ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Notification.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 
33 class Notification extends Slate implements ISlate\Notification
34 {
38  protected array $contents = [];
39 
40  public function __construct(
42  string $name,
43  $notification_items,
45  ) {
46  $this->contents = $notification_items;
47  parent::__construct($signal_generator, $name, $symbol);
48  }
49 
54  {
55  $clone = clone $this;
56  $clone->contents[] = $entry;
57  return $clone;
58  }
59 
63  public function getContents(): array
64  {
65  return $this->contents;
66  }
67 
68  public function withMappedSubNodes(callable $f): ISlate\Notification
69  {
70  return $this;
71  }
72 }
This describes a symbol.
Definition: Symbol.php:29
__construct(SignalGeneratorInterface $signal_generator, string $name, $notification_items, Symbol $symbol)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: Combined.php:21
__construct(Container $dic, ilPlugin $plugin)
withAdditionalEntry(NotificationItem $entry)
Get a Notification Slate like this, but with one additional Notification Item entry.