Completed
Push — master ( 57e9fb...792895 )
by Dieter
11:00 queued 03:24
created

CabinOptions::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Amadeus\Client\RequestOptions\Fare\InformativeBestPricingWithoutPnr;
4
5
/**
6
 * Collection of cabin options.
7
 *
8
 * new CabinOptions(
9
 *     [
10
 *         new Cabin(Cabin::TYPE_FIRST_CABIN, Cabin::CLASS_BUSINESS),
11
 *         new Cabin(Cabin::TYPE_SECOND_CABIN, Cabin::CLASS_PREMIUM_ECONOMY)
12
 *     ]
13
 * )
14
 *
15
 * @package Amadeus\Client\RequestOptions\Fare\InformativeBestPricingWithoutPnr
16
 * @author    t.sari <[email protected]>
17
 */
18
class CabinOptions
19
{
20
    /**
21
     * @var Cabin[]|array
22
     */
23
    private $items = [];
24
25
    /**
26
     * CabinOption constructor.
27
     *
28
     * @param Cabin[]|array $items
29
     */
30 4
    public function __construct($items = [])
31
    {
32 4
        $this->items = $items;
33 4
    }
34
35
    /**
36
     * @return Cabin[]|array
37
     */
38 4
    public function getOptions()
39
    {
40 4
        return $this->items;
41
    }
42
}
43