Completed
Push — develop ( a8951f...6805ee )
by Dieter
05:48
created

Connection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
/**
3
 * Amadeus
4
 *
5
 * Copyright 2015 Amadeus Benelux NV
6
 */
7
8
namespace Amadeus\Client\Struct\Air\MultiAvailability;
9
10
/**
11
 * Connection
12
 *
13
 * @package Amadeus\Client\Struct\Air\MultiAvailability
14
 * @author Dieter Devlieghere <[email protected]>
15
 */
16
class Connection
17
{
18
    const INDICATOR_EXCLUDE = 700;
19
    const INDICATOR_FORCE_AIRPORT_CITY = 701;
20
    const INDICATOR_AIRPORT_ASSOCIATION = "NAA";
21
    const INDICATOR_NONSTOP_DIRECT_CONNECTION = "NDC";
22
23
    /**
24
     * @var string
25
     */
26
    public $location;
27
28
    /**
29
     * @var string
30
     */
31
    public $time;
32
33
    /**
34
     * self::INDICATOR_*
35
     *
36
     * @var string|int
37
     */
38
    public $indicatorList;
39
40
    /**
41
     * Connection constructor.
42
     *
43
     * @param string $location
44
     * @param string|int|null $indicator self::INDICATOR_*
45
     */
46
    public function __construct($location, $indicator = null)
47
    {
48
        $this->location = $location;
49
        $this->indicatorList = $indicator;
50
    }
51
}
52