Passed
Push — trunk ( 5a09c5...6e8e2f )
by Christian
12:18 queued 14s
created

PayPaymentOrderCriteriaEvent   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getOrderId() 0 3 1
A __construct() 0 5 1
A getContext() 0 3 1
A getCriteria() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Checkout\Payment\Event;
4
5
use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
6
use Shopware\Core\Framework\Log\Package;
7
use Shopware\Core\System\SalesChannel\SalesChannelContext;
8
use Symfony\Contracts\EventDispatcher\Event;
9
10
#[Package('checkout')]
11
class PayPaymentOrderCriteriaEvent extends Event
12
{
13
    public function __construct(
14
        private readonly string $orderId,
15
        private readonly Criteria $criteria,
16
        private readonly SalesChannelContext $context
17
    ) {
18
    }
19
20
    public function getOrderId(): string
21
    {
22
        return $this->orderId;
23
    }
24
25
    public function getCriteria(): Criteria
26
    {
27
        return $this->criteria;
28
    }
29
30
    public function getContext(): SalesChannelContext
31
    {
32
        return $this->context;
33
    }
34
}
35