Completed
Push — master ( 2eb89a...0fd1a8 )
by Dieter
13:44
created

MonetaryDetails::__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 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Amadeus\Client\Struct\Ticket\CreateTASF;
4
5
class MonetaryDetails
6
{
7
    /**
8
     * Must be always set to F
9
     *
10
     * @var string
11
     */
12
    public $typeQualifier = 'F';
13
14
    /**
15
     * @var string|int
16
     */
17
    public $amount;
18
19
    /**
20
     * @var string
21
     */
22
    public $currency;
23
24
    /**
25
     * MonetaryDetails constructor.
26
     *
27
     * @param string|int $amount
28
     * @param string $currency
29
     */
30 12
    public function __construct($amount, $currency)
31
    {
32 12
        $this->amount = $amount;
33 12
        $this->currency = $currency;
34 12
    }
35
}
36