Passed
Push — master ( 9be0c8...8c1bed )
by Chris
02:56
created

TicketReservation   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getTicketType() 0 3 1
A __construct() 0 4 1
A getReservationId() 0 3 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 3
    public function __construct(TicketType $ticketType, $reservationId)
18
    {
19 3
        $this->ticketType = $ticketType;
20 3
        $this->reservationId = $reservationId;
21 3
    }
22
23
    /**
24
     * @return TicketType
25
     */
26 16
    public function getTicketType()
27
    {
28 16
        return $this->ticketType;
29
    }
30
31
    /**
32
     * @return mixed
33
     */
34 1
    public function getReservationId()
35
    {
36 1
        return $this->reservationId;
37
    }
38
}