Issues (281)

Branch: master

Event/NotImplementedUnsubscribedEvent.php (1 issue)

1
<?php
2
3
namespace Frontend\Modules\Mailmotor\Domain\Subscription\Event;
4
5
use Frontend\Modules\Mailmotor\Domain\Subscription\Command\Unsubscription;
6
use Symfony\Component\EventDispatcher\Event;
7
8
final class NotImplementedUnsubscribedEvent 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

8
final class NotImplementedUnsubscribedEvent extends /** @scrutinizer ignore-deprecated */ Event
Loading history...
9
{
10
    const EVENT_NAME = 'mailmotor.event.not_implemented.unsubscribed';
11
12
    /**
13
     * @var Unsubscription
14
     */
15
    private $unsubscription;
16
17
    public function __construct(Unsubscription $unsubscription)
18
    {
19
        $this->unsubscription = $unsubscription;
20
    }
21
22
    public function getUnsubscription(): Unsubscription
23
    {
24
        return $this->unsubscription;
25
    }
26
}
27