Passed
Push — master ( 19e97f...f6e67c )
by Dieter
07:06 queued 02:46
created

GetFareFamilyDescriptionConv   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A convert() 0 4 1
1
<?php
2
3
namespace Amadeus\Client\RequestCreator\Converter\Fare;
4
5
use Amadeus\Client\RequestCreator\Converter\BaseConverter;
6
use Amadeus\Client\RequestOptions\FareGetFareFamilyDescriptionOptions;
7
use Amadeus\Client\Struct\Fare\GetFareFamilyDescription;
8
9
/**
10
 * Fare_GetFareFamilyDescription Request converter
11
 *
12
 * Class GetFareFamilyDescriptionConv
13
 * @package Amadeus\Client\RequestCreator\Converter\Fare
14
 */
15
class GetFareFamilyDescriptionConv extends BaseConverter
16
{
17
    /**
18
     * @param FareGetFareFamilyDescriptionOptions $requestOptions
19
     * @param int|string $version
20
     * @return GetFareFamilyDescription
21
     */
22
    public function convert($requestOptions, $version)
23
    {
24
        return new GetFareFamilyDescription($requestOptions);
25
    }
26
}
27