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

Connection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
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