Completed
Pull Request — master (#43)
by Dieter
13:45
created

PaymentId::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 5
c 1
b 0
f 0
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
/**
3
 * amadeus-ws-client
4
 *
5
 * Copyright 2015 Amadeus Benelux NV
6
 *
7
 * Licensed under the Apache License, Version 2.0 (the "License");
8
 * you may not use this file except in compliance with the License.
9
 * You may obtain a copy of the License at
10
 *
11
 * http://www.apache.org/licenses/LICENSE-2.0
12
 *
13
 * Unless required by applicable law or agreed to in writing, software
14
 * distributed under the License is distributed on an "AS IS" BASIS,
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
18
 *
19
 * @package Amadeus
20
 * @license https://opensource.org/licenses/Apache-2.0 Apache 2.0
21
 */
22
23
namespace Amadeus\Client\Struct\Fop;
24
25
/**
26
 * PaymentId
27
 *
28
 * @package Amadeus\Client\Struct\Fop
29
 * @author Dieter Devlieghere <[email protected]>
30
 */
31
class PaymentId
32
{
33
    const TYPE_APPLICATION_CORRELATOR_ID = "APP";
34
    const TYPE_CAPTURE_REFERENCE_ID = "CRI";
35
    const TYPE_DCC_CURRENCY_CHOSEN = "DCC";
36
    const TYPE_THIRD_PARTY_RECORD_ID = "EXT";
37
    const TYPE_FRAUD_RECORD_ID = "FRI";
38
    const TYPE_MERCHANT_REFERENCE = "MRF";
39
    const TYPE_PAYMENT_PAGE_TOKEN = "PPT";
40
    const TYPE_PAYMENT_RECORD_ID = "PRI";
41
    const TYPE_PSP_RECONCILATION_REFERENCE = "PRR";
42
    const TYPE_REFUND_REFERENCE_ID = "RRI";
43
44
    /**
45
     * self::TYPE_*
46
     *
47
     * @var string
48
     */
49
    public $referenceType;
50
51
    /**
52
     * @var string
53
     */
54
    public $uniqueReference;
55
56
    /**
57
     * PaymentId constructor.
58
     *
59
     * @param string $uniqueReference
60
     * @param string $referenceType
61
     */
62 1
    public function __construct($uniqueReference, $referenceType)
63
    {
64 1
        $this->referenceType = $referenceType;
65 1
        $this->uniqueReference = $uniqueReference;
66 1
    }
67
}
68