Test Failed
Pull Request — master (#383)
by
unknown
08:36 queued 02:15
created

ProfileUpdateProfile   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 4
1
<?php
2
3
namespace Amadeus\Client\Struct\Profile;
4
5
use Amadeus\Client\Struct\BaseWsMessage;
6
7
class ProfileUpdateProfile extends BaseWsMessage
8
{
9
    public $Position;
10
    //public $Root;
11
    public $UniqueID=[];
12
    public $Version;
13
14
    public function __construct($options)
15
    {
16
        if (!is_null($options)) {
17
            foreach ($options as $propName => $propValue) {
18
                if (property_exists($this, $propName)) {
19
                    $this->$propName = $propValue;
20
                }
21
            }
22
        }
23
    }
24
}
25