Passed
Push — master ( c541cb...64a56e )
by Chris
33s
created

TicketReservation::getTicketType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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