Ticket   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 27
rs 10
ccs 8
cts 8
cp 1
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTicketId() 0 3 1
A getPurchaseId() 0 3 1
1
<?php
2
3
namespace ConferenceTools\Checkin\Domain\ValueObject;
4
use JMS\Serializer\Annotation as JMS;
5
6
final class Ticket
7
{
8
    /**
9
     * @var string
10
     * @JMS\Type("string")
11
     */
12
    private $purchaseId;
13
    /**
14
     * @var string
15
     * @JMS\Type("string")
16
     */
17
    private $ticketId;
18
19 9
    public function __construct(string $purchaseId, string $ticketId)
20
    {
21 9
        $this->purchaseId = $purchaseId;
22 9
        $this->ticketId = $ticketId;
23 9
    }
24
25 11
    public function getPurchaseId(): string
26
    {
27 11
        return $this->purchaseId;
28
    }
29
30 11
    public function getTicketId(): string
31
    {
32 11
        return $this->ticketId;
33
    }
34
}
35