Passed
Push — master ( a5379f...f484f2 )
by Christian
12:11 queued 10s
created

OrderStateChangeCriteriaEvent::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
nc 1
nop 0
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Checkout\Order\Event;
4
5
use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria;
6
use Symfony\Contracts\EventDispatcher\Event;
7
8
class OrderStateChangeCriteriaEvent extends Event
9
{
10
    /**
11
     * @var string
12
     */
13
    private $orderId;
14
15
    /**
16
     * @var Criteria
17
     */
18
    private $criteria;
19
20
    public function __construct(string $orderId, Criteria $criteria)
21
    {
22
        $this->orderId = $orderId;
23
        $this->criteria = $criteria;
24
    }
25
26
    public function getOrderId(): string
27
    {
28
        return $this->orderId;
29
    }
30
31
    public function getCriteria(): Criteria
32
    {
33
        return $this->criteria;
34
    }
35
}
36