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