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

RecurringPaymentOrderCriteriaEvent::getOrderId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Checkout\Payment\Event;
4
5
use Shopware\Core\Framework\Context;
6
use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
7
use Shopware\Core\Framework\Log\Package;
8
use Symfony\Contracts\EventDispatcher\Event;
9
10
#[Package('checkout')]
11
class RecurringPaymentOrderCriteriaEvent extends Event
12
{
13
    public function __construct(
14
        private readonly string $orderId,
15
        private readonly Criteria $criteria,
16
        private readonly Context $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(): Context
31
    {
32
        return $this->context;
33
    }
34
}
35