TicketPurchasePaid::getPurchaserEmail()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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