Completed
Push — feature/select_existing_custom... ( a1e51a )
by Laurent
01:57
created

ClassifyFlight::getFlightId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace flightlog\command;
4
5
use CommandInterface;
6
7
/**
8
 * @author Laurent De Coninck <[email protected]>
9
 */
10
final class ClassifyFlight implements CommandInterface
11
{
12
13
    /**
14
     * @var int
15
     */
16
    private $flightId;
17
18
    /**
19
     * @var int
20
     */
21
    private $projectId;
22
23
    /**
24
     * @param int $flightId
25
     * @param int $projectId
26
     */
27
    public function __construct($flightId, $projectId)
28
    {
29
        $this->flightId = (int)$flightId;
30
        $this->projectId = (int)$projectId;
31
    }
32
33
    /**
34
     * @return int
35
     */
36
    public function getFlightId(): int
37
    {
38
        return $this->flightId;
39
    }
40
41
    /**
42
     * @return int
43
     */
44
    public function getProjectId(): int
45
    {
46
        return $this->projectId;
47
    }
48
49
}