Passed
Push — master ( 19e97f...f6e67c )
by Dieter
07:06 queued 02:46
created

Reference::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Amadeus\Client\RequestOptions;
4
5
/**
6
 * Class Reference
7
 * @package Amadeus\Client\RequestOptions
8
 */
9
class Reference
10
{
11
    const TYPE_TST = 'T';
12
    const TYPE_RECOMMENDATION = 'REC';
13
    const TYPE_FARE_COMPONENT = 'FC';
14
15
    /**
16
     * @var string
17
     */
18
    private $type;
19
20
    /**
21
     * @var int
22
     */
23
    private $value;
24
25
    /**
26
     * Reference constructor.
27
     * @param string $type
28
     * @param int $value
29
     */
30
    public function __construct($type, $value)
31
    {
32
        $this->type = $type;
33
        $this->value = $value;
34
    }
35
36
    /**
37
     * @return string
38
     */
39
    public function getType()
40
    {
41
        return $this->type;
42
    }
43
44
    /**
45
     * @return int
46
     */
47
    public function getValue()
48
    {
49
        return $this->value;
50
    }
51
}
52