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

Recommendation::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 2
nc 2
nop 1
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