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

Reference   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 43
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 43
rs 10
c 0
b 0
f 0

3 Methods

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