Test Failed
Pull Request — master (#383)
by
unknown
12:04
created

ProfileUpdateProfile::__construct()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 10
rs 9.9332
c 0
b 0
f 0
cc 4
nc 4
nop 1
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
}