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

MonetaryInformation   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Amadeus\Client\Struct\Ticket\CreateTASF;
4
5
class MonetaryInformation
6
{
7
    /**
8
     * @var MonetaryDetails
9
     */
10
    public $monetaryDetails;
11
12
    /**
13
     * MonetaryInformation constructor.
14
     *
15
     * @param string|int $amount
16
     * @param string $currency
17
     */
18 12
    public function __construct($amount, $currency)
19
    {
20 12
        $this->monetaryDetails = new MonetaryDetails($amount, $currency);
21 12
    }
22
}
23