Test Failed
Pull Request — master (#383)
by
unknown
06:24
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
5
use Amadeus\Client\RequestCreator\Converter\BaseConverter;
6
use Amadeus\Client\RequestOptions\ProfileUpdateProfileOptions;
7
use Amadeus\Client\Struct;
8
9
class UpdateProfileConv extends BaseConverter
10
{
11
    /**
12
     * @param ProfileUpdateProfileOptions $requestOptions
13
     * @param int|string $version
14
     * @return Struct\Profile\ProfileUpdateProfile
15
     */
16
    public function convert($requestOptions, $version)
17
    {
18
        return new Struct\Profile\ProfileUpdateProfile($requestOptions);
19
    }
20
}
21