1 | <?php |
||
2 | |||
3 | namespace Backend\Modules\Mailmotor\Domain\Settings\Event; |
||
4 | |||
5 | use Backend\Modules\Mailmotor\Domain\Settings\Command\SaveSettings; |
||
6 | use Symfony\Component\EventDispatcher\Event; |
||
7 | |||
8 | /** |
||
9 | * Mailmotor settings saved Event |
||
10 | */ |
||
11 | final class SettingsSavedEvent extends Event |
||
0 ignored issues
–
show
Deprecated Code
introduced
by
Loading history...
|
|||
12 | { |
||
13 | /** |
||
14 | * @var string The name the listener needs to listen to to catch this event. |
||
15 | */ |
||
16 | const EVENT_NAME = 'mailmotor.event.settings_saved'; |
||
17 | |||
18 | /** |
||
19 | * @var SaveSettings |
||
20 | */ |
||
21 | protected $settings; |
||
22 | |||
23 | public function __construct(SaveSettings $settings) |
||
24 | { |
||
25 | $this->settings = $settings; |
||
26 | } |
||
27 | |||
28 | public function getSettings(): SaveSettings |
||
29 | { |
||
30 | return $this->settings; |
||
31 | } |
||
32 | } |
||
33 |