PurchaseRejected::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
nc 1
nop 2
dl 0
loc 4
c 0
b 0
f 0
cc 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Damax\ChargeableApi\Bridge\Symfony\EventDispatcher\Event;
6
7
use Damax\ChargeableApi\Identity\Identity;
8
use Damax\ChargeableApi\Product\Product;
9
use Symfony\Component\EventDispatcher\Event;
10
11
final class PurchaseRejected extends Event
12
{
13
    private $identity;
14
    private $product;
15
16
    public function __construct(Identity $identity, Product $product)
17
    {
18
        $this->identity = $identity;
19
        $this->product = $product;
20
    }
21
22
    public function identity(): Identity
23
    {
24
        return $this->identity;
25
    }
26
27
    public function product(): Product
28
    {
29
        return $this->product;
30
    }
31
}
32