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

OrderStateChangeCriteriaEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 7
dl 0
loc 26
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getOrderId() 0 3 1
A getCriteria() 0 3 1
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