PaymentEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
eloc 4
c 2
b 0
f 1
dl 0
loc 15
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPayment() 0 3 1
A setPayment() 0 3 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