Issues (23)

src/Event/PaymentEvent.php (1 issue)

1
<?php
2
3
4
namespace Eres\SyliusIyzicoPlugin\Event;
5
6
use Sylius\Component\Payment\Model\PaymentInterface;
7
use Symfony\Component\EventDispatcher\Event;
8
9
class PaymentEvent 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

9
class PaymentEvent extends /** @scrutinizer ignore-deprecated */ Event
Loading history...
10
{
11
    /**
12
     * @var PaymentInterface
13
     */
14
    private $payment;
15
16
    public function getPayment(): ?PaymentInterface
17
    {
18
        return $this->payment;
19
    }
20
21
    public function setPayment(PaymentInterface $payment)
22
    {
23
        $this->payment = $payment;
24
    }
25
}
26