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

FunctionDetails::__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
 * FunctionDetails
12
 *
13
 * @package Amadeus\Client\Struct\Air\MultiAvailability
14
 * @author Dieter Devlieghere <[email protected]>
15
 */
16
class FunctionDetails
17
{
18
    const ACTION_AVAILABILITY = 44;
19
20
    const ACTION_SCHEDULE = 48;
21
22
    const ACTION_TIMETABLE = 51;
23
24
    const ACTION_SUBSEQUENT_BACKWARD = 54;
25
26
    const ACTION_SUBSEQUENT_FORWARD = 55;
27
28
    const ACTION_SUBSEQUENT_ORIGINAL = 61;
29
30
    const BUSINESS_AIR_PROVIDER = 1;
31
32
33
    /**
34
     * @var int|string
35
     */
36
    public $businessFunction;
37
38
    /**
39
     * @var int|string
40
     */
41
    public $actionCode;
42
43
    /**
44
     * @var string
45
     */
46
    public $subActionCode;
47
48
    /**
49
     * FunctionDetails constructor.
50
     *
51
     * @param int|string|null $actionCode
52
     * @param int|string|null $businessFunction
53
     */
54
    public function __construct($actionCode, $businessFunction = null)
55
    {
56
        $this->actionCode = $actionCode;
57
        $this->businessFunction = $businessFunction;
58
    }
59
}
60