TicketReservation   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 25%

Importance

Changes 0
Metric Value
dl 0
loc 27
rs 10
c 0
b 0
f 0
ccs 2
cts 8
cp 0.25
wmc 3
lcom 0
cbo 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getTicketType() 0 4 1
A getReservationId() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: imhotek
5
 * Date: 28/11/16
6
 * Time: 21:18
7
 */
8
9
namespace ConferenceTools\Tickets\Domain\ValueObject;
10
11
12
class TicketReservation
13
{
14
    private $ticketType;
15
    private $reservationId;
16
17
    public function __construct(TicketType $ticketType, $reservationId)
18
    {
19
        $this->ticketType = $ticketType;
20
        $this->reservationId = $reservationId;
21
    }
22
23
    /**
24
     * @return TicketType
25
     */
26 6
    public function getTicketType()
27
    {
28 6
        return $this->ticketType;
29
    }
30
31
    /**
32
     * @return mixed
33
     */
34
    public function getReservationId()
35
    {
36
        return $this->reservationId;
37
    }
38
}