Completed
Push — develop ( b71e24...13e4b5 )
by Dieter
10:39
created

FormOfPayment   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 67
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 67
rs 10
c 1
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\SalesReports\DisplayQueryReport;
9
10
/**
11
 * FormOfPayment
12
 *
13
 * @package Amadeus\Client\Struct\SalesReports\DisplayQueryReport
14
 * @author Dieter Devlieghere <[email protected]>
15
 */
16
class FormOfPayment
17
{
18
    /**
19
     * On behalf of/in exchange for a document previously issued by a Sales Agent
20
     */
21
    const FOP_ISSUED_BY_AGENT = "AGT";
22
    /**
23
     * Cash
24
     */
25
    const FOP_CASH = "CA";
26
    /**
27
     * Credit Card
28
     */
29
    const FOP_CREDIT_CARD = "CC";
30
    /**
31
     * Check
32
     */
33
    const FOP_CHECK = "CK";
34
    /**
35
     * Government transportation request
36
     */
37
    const FOP_GOVERNMENT_TRANSPORTATION_REQ = "GR";
38
    /**
39
     * Miscellaneous
40
     */
41
    const FOP_MISCELLANEOUS = "MS";
42
    /**
43
     * Non-refundable (refund restricted)
44
     */
45
    const FOP_NON_REFUNDABLE = "NR";
46
    /**
47
     * Prepaid Ticket Advice (PTA)
48
     */
49
    const FOP_PREPAID_TICKET_ADVICE = "PT";
50
    /**
51
     * Single government transportation request
52
     */
53
    const FOP_SINGLE_GOVERNMENT_TRANSPORTATION_REQ = "SGR";
54
    /**
55
     * United Nations Transportation Request
56
     */
57
    const FOP_UNITED_NATIONS_TRANSPORTATION_REQ = "UN";
58
59
    /**
60
     * self::FOP_*
61
     *
62
     * @var string
63
     */
64
    public $type;
65
66
    /**
67
     * @var string
68
     */
69
    public $vendorCode;
70
71
    /**
72
     * FormOfPayment constructor.
73
     *
74
     * @param string $type self::FOP_*
75
     * @param string $vendor
76
     */
77
    public function __construct($type, $vendor)
78
    {
79
        $this->type = $type;
80
        $this->vendorCode = $vendor;
81
    }
82
}
83