Test Failed
Pull Request — master (#368)
by
unknown
06:17
created

GenerateVirtualCard::__construct()   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
/**
4
 * amadeus-ws-client
5
 *
6
 * Copyright 2015 Amadeus Benelux NV
7
 *
8
 * Licensed under the Apache License, Version 2.0 (the "License");
9
 * you may not use this file except in compliance with the License.
10
 * You may obtain a copy of the License at
11
 *
12
 * http://www.apache.org/licenses/LICENSE-2.0
13
 *
14
 * Unless required by applicable law or agreed to in writing, software
15
 * distributed under the License is distributed on an "AS IS" BASIS,
16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
 * See the License for the specific language governing permissions and
18
 * limitations under the License.
19
 *
20
 * @package Amadeus
21
 * @license https://opensource.org/licenses/Apache-2.0 Apache 2.0
22
 */
23
24
namespace Amadeus\Client\Struct\Pay;
25
26
use Amadeus\Client\Struct\BaseWsMessage;
27
use Amadeus\Client\RequestOptions\PayGenerateVirtualCardOptions;
28
29
/**
30
 * GenerateVirtualCard
31
 *
32
 * @package Amadeus\Client\Struct\Pay
33
 * @author Konstantin Bogomolov <[email protected]>
34
 */
35
class GenerateVirtualCard extends BaseWsMessage
36
{
37
    public $Version = '2.0';
38
39
    public $VirtualCard;
40
    /**
41
     * GenerateVirtualCard constructor.
42
     * @param PayGenerateVirtualCardOptions $params
43
     * @param string|int                    $version
44
     */
45
    public function __construct(PayGenerateVirtualCardOptions $params, $version)
0 ignored issues
show
Unused Code introduced by
The parameter $version is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
46
    {
47
        $this->VirtualCard = new VirtualCard($params);
48
    }
49
}
50