Test Failed
Pull Request — master (#383)
by
unknown
06:24
created

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