ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Container.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
26 class Container implements ComponentInterface\Container
27 {
28  use ComponentHelper;
29 
33  protected array $toasts = [];
34 
35  public function getToasts(): array
36  {
37  return $this->toasts;
38  }
39 
41  {
42  $clone = clone $this;
43  $clone->toasts[] = $toast;
44  return $clone;
45  }
46 
47  public function withoutToasts(): Container
48  {
49  $clone = clone $this;
50  $clone->toasts = [];
51  return $clone;
52  }
53 }
withAdditionalToast(ComponentInterface\Toast $toast)
Definition: Container.php:40