Completed
Push — master ( 88150f...580efa )
by Laurent
04:58 queued 02:17
created

InstructionFlightQuery::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
require_once __DIR__ . '/../class/instruction/StudentId.php';
4
5
/**
6
 * Query class to get all instructions flight of a user.
7
 *
8
 * @author Laurent De Coninck <[email protected]>
9
 */
10
class InstructionFlightQuery
11
{
12
13
    /**
14
     * @var StudentId
15
     */
16
    private $studentId;
17
18
    /**
19
     * @param StudentId $studentId
20
     */
21
    public function __construct(StudentId $studentId)
22
    {
23
        $this->studentId = $studentId;
24
    }
25
26
    /**
27
     * @return int
28
     */
29
    public function getStudentId()
30
    {
31
        return $this->studentId->getId();
32
    }
33
}