Completed
Pull Request — master (#181)
by
unknown
10:16
created

InitRefund::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 1
b 0
f 1
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
/**
3
 * amadeus-ws-client
4
 *
5
 * Copyright 2015 Amadeus Benelux NV
6
 *
7
 * Licensed under the Apache License, Version 2.0 (the "License");
8
 * you may not use this file except in compliance with the License.
9
 * You may obtain a copy of the License at
10
 *
11
 * http://www.apache.org/licenses/LICENSE-2.0
12
 *
13
 * Unless required by applicable law or agreed to in writing, software
14
 * distributed under the License is distributed on an "AS IS" BASIS,
15
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
 * See the License for the specific language governing permissions and
17
 * limitations under the License.
18
 *
19
 * @package Amadeus
20
 * @license https://opensource.org/licenses/Apache-2.0 Apache 2.0
21
 */
22
23
namespace Amadeus\Client\Struct\Ticket;
24
25
use Amadeus\Client\RequestOptions\TicketInitRefundOptions;
26
use Amadeus\Client\Struct\BaseWsMessage;
27
use Amadeus\Client\Struct\Ticket\InitRefund\Contracts;
28
use Amadeus\Client\Struct\Ticket\InitRefund\ActionDetails;
29
/**
30
 * Ticket_InitRefund request structure
31
 *
32
 * @package Amadeus\Client\Struct\Ticket
33
 * @author Mike Hernas <[email protected]>
34
 */
35
class InitRefund extends BaseWsMessage
36
{
37
    var $Contracts = null;
0 ignored issues
show
Coding Style introduced by
The visibility should be declared for property $Contracts.

The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using

class A {
    var $property;
}

the property is implicitly global.

To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.

Loading history...
38
    var $ActionDetails = null;
0 ignored issues
show
Coding Style introduced by
The visibility should be declared for property $ActionDetails.

The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using

class A {
    var $property;
}

the property is implicitly global.

To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.

Loading history...
39
40
    /**
41
     * InitRefund constructor.
42
     *
43
     * @param TicketInitRefundOptions $options
44
     */
45 8
    public function __construct($options)
46
    {
47 8
        $this->Contracts = new Contracts($options->ticketNumbers);
48 8
        $this->ActionDetails = new ActionDetails($options->actionDetails);
49 8
    }
50
}
51