ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ToastAction.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 {
28  public function __construct(private string $identifier, private string $title, private \Closure $action)
29  {
30  }
31 
32  public function getIdentifier(): string
33  {
34  return $this->identifier;
35  }
36 
37  public function getTitle(): string
38  {
39  return $this->title;
40  }
41 
42  public function getAction(): \Closure
43  {
44  return $this->action;
45  }
46 }
__construct(private string $identifier, private string $title, private \Closure $action)
Definition: ToastAction.php:28