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

TicketReservation::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
crap 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
}