CancelTicket   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

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

3 Methods

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