PurchaseRejected   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 19
c 0
b 0
f 0
rs 10
wmc 3

3 Methods

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