Test Failed
Pull Request — master (#383)
by
unknown
12:04
created

UpdateProfileConv::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\Profile;
4
use Amadeus\Client\RequestCreator\Converter\BaseConverter;
5
use Amadeus\Client\RequestOptions\ProfileUpdateProfileOptions;
6
use Amadeus\Client\Struct;
7
8
class UpdateProfileConv extends BaseConverter
9
{
10
    /**
11
     * @param ProfileUpdateProfileOptions $requestOptions
12
     * @param int|string $version
13
     * @return Struct\Profile\ProfileUpdateProfile
14
     */
15
    public function convert($requestOptions, $version)
16
    {
17
        return new Struct\Profile\ProfileUpdateProfile($requestOptions);
18
    }
19
}