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

InstructionFlightQuery   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getStudentId() 0 4 1
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
}