TicketPurchasePaid::getId()   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
 * Created by PhpStorm.
4
 * User: imhotek
5
 * Date: 28/11/16
6
 * Time: 18:20
7
 */
8
9
namespace ConferenceTools\Tickets\Domain\Event\Ticket;
10
11
use JMS\Serializer\Annotation as Jms;
12
use Carnage\Cqrs\Event\EventInterface;
13
14
class TicketPurchasePaid implements EventInterface
15
{
16
    /**
17
     * @Jms\Type("string")
18
     * @var string
19
     */
20
    private $id;
21
22
    /**
23
     * @Jms\Type("string")
24
     * @var string
25
     */
26
    private $purchaserEmail;
27
28
    /**
29
     * TicketPurchasePaid constructor.
30
     * @param string $id
31
     * @param string $purchaserEmail
32
     */
33
    public function __construct(string $id, string $purchaserEmail)
34
    {
35
        $this->id = $id;
36
        $this->purchaserEmail = $purchaserEmail;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getId()
43
    {
44
        return $this->id;
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getPurchaserEmail(): string
51
    {
52
        return $this->purchaserEmail;
53
    }
54
}