TicketReservation::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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