Passed
Push — master ( 6c8080...f4145f )
by Artem
03:33
created

Recommendation   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 6
c 1
b 0
f 0
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
3
namespace Amadeus\Client\Struct\Service\BookPriceProduct;
4
5
class Recommendation
6
{
7
    /**
8
     * @var string
9
     */
10
    public $RecoID;
11
12
    /**
13
     * @var string[]
14
     */
15
    public $CustomerRefIds;
16
17
    /**
18
     * @param \Amadeus\Client\RequestOptions\Service\BookPriceProduct\Recommendation $recommendationOptions
19
     */
20
    public function __construct($recommendationOptions)
21
    {
22
        $this->RecoID = $recommendationOptions->id;
23
24
        if (!empty($recommendationOptions->customerRefIds)) {
25
            $this->CustomerRefIds = $recommendationOptions->customerRefIds;
26
        }
27
    }
28
}
29