Test Failed
Pull Request — master (#383)
by
unknown
12:04
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
use Amadeus\Client\Struct\BaseWsMessage;
5
6
class ProfileUpdateProfile extends BaseWsMessage
7
{
8
    public $Position;
9
    //public $Root;
10
    public $UniqueID=[];
11
    public $Version;
12
13
    public function __construct($options)
14
    {
15
        if (!is_null($options)) {
16
            foreach ($options as $propName => $propValue) {
17
                if (property_exists($this, $propName)) {
18
                    $this->$propName = $propValue;
19
                }
20
            }
21
        }
22
    }
23
}