StatusInformation   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 30
ccs 2
cts 2
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * Amadeus
4
 *
5
 * Copyright 2015 Amadeus Benelux NV
6
 */
7
8
namespace Amadeus\Client\Struct\SalesReports\DisplayQueryReport;
9
10
/**
11
 * StatusInformation
12
 *
13
 * @package Amadeus\Client\Struct\SalesReports\DisplayQueryReport
14
 * @author Dieter Devlieghere <[email protected]>
15
 */
16
class StatusInformation
17
{
18
    /**
19
     * Domestic sale
20
     */
21
    const SALESIND_DOMESTIC = "DOM";
22
    /**
23
     * International sale
24
     */
25
    const SALESIND_INTERNATIONAL = "INT";
26
    /**
27
     * Voided document
28
     */
29
    const SALESIND_VOIDED_DOCUMENT = "V";
30
31
    /**
32
     * self::SALESIND_*
33
     *
34
     * @var string
35
     */
36
    public $type;
37
38
    /**
39
     * StatusInformation constructor.
40
     *
41
     * @param string $indicator self::SALESIND_*
42
     */
43 10
    public function __construct($indicator)
44
    {
45 10
        $this->type = $indicator;
46 10
    }
47
}
48