CancelTicket::getPurchaseId()   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\Tickets\Domain\Command\Ticket;
4
5
use Carnage\Cqrs\Event\EventInterface;
6
7
class CancelTicket implements EventInterface
8
{
9
    /**
10
     * @var string
11
     */
12
    private $purchaseId;
13
    /**
14
     * @var string
15
     */
16
    private $ticketId;
17
18
    /**
19
     * TicketCancelled constructor.
20
     * @param string $purchaseId
21
     * @param string $ticketId
22
     */
23
    public function __construct(string $purchaseId, string $ticketId)
24
    {
25
        $this->purchaseId = $purchaseId;
26
        $this->ticketId = $ticketId;
27
    }
28
29
    /**
30
     * @return string
31
     */
32
    public function getPurchaseId(): string
33
    {
34
        return $this->purchaseId;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getTicketId(): string
41
    {
42
        return $this->ticketId;
43
    }
44
}
45