TicketPurchasePaid   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 32
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getPurchaseId() 0 3 1
A getPurchaserEmail() 0 3 1
A __construct() 0 6 1
1
<?php
2
3
namespace ConferenceTools\Checkin\Domain\Event\Purchase;
4
5
use Carnage\Cqrs\Event\EventInterface;
6
use JMS\Serializer\Annotation as JMS;
7
8
class TicketPurchasePaid implements EventInterface
9
{
10
    /**
11
     * @var string
12
     * @JMS\Type("string")
13
     */
14
    private $purchaseId;
15
    /**
16
     * @var string
17
     * @JMS\Type("string")
18
     */
19
    private $purchaserEmail;
20
21
    public function __construct(
22
        string $purchaseId,
23
        string $purchaserEmail
24
    ) {
25
        $this->purchaserEmail = $purchaserEmail;
26
        $this->purchaseId = $purchaseId;
27
    }
28
29
    public function getPurchaserEmail(): string
30
    {
31
        return $this->purchaserEmail;
32
    }
33
34
    /**
35
     * @return string
36
     */
37
    public function getPurchaseId(): string
38
    {
39
        return $this->purchaseId;
40
    }
41
}
42