Issues (281)

Branch: master

Domain/Settings/Event/SettingsSavedEvent.php (1 issue)

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
The class Symfony\Component\EventDispatcher\Event has been deprecated: since Symfony 4.3, use "Symfony\Contracts\EventDispatcher\Event" instead ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

11
final class SettingsSavedEvent extends /** @scrutinizer ignore-deprecated */ Event
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