PaymentEvent::getPayment()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 1
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