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

GetFareFamilyDescriptionConv::convert()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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