1 | <?php |
||
22 | class ToastEvent extends AbstractEvent { |
||
23 | |||
24 | /** |
||
25 | * Toast. |
||
26 | * |
||
27 | * @var ToastInterface |
||
28 | */ |
||
29 | private $toast; |
||
30 | |||
31 | /** |
||
32 | * Constructor. |
||
33 | * |
||
34 | * @param string $eventName The event name. |
||
35 | * @param ToastInterface $toast The toast. |
||
36 | */ |
||
37 | public function __construct($eventName, ToastInterface $toast) { |
||
41 | |||
42 | /** |
||
43 | * Get the toast. |
||
44 | * |
||
45 | * @return ToastInterface Returns the toast. |
||
46 | */ |
||
47 | public function getToast() { |
||
50 | |||
51 | /** |
||
52 | * Set the toast. |
||
53 | * |
||
54 | * @param ToastInterface $toast The toast. |
||
55 | * @return ToastEvent Returns this toast event. |
||
56 | */ |
||
57 | protected function setToast(ToastInterface $toast) { |
||
61 | } |
||
62 |