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