Completed
Push — master ( 2eb89a...0fd1a8 )
by Dieter
13:44
created

PassengerReference::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
crap 1
1
<?php
2
3
namespace Amadeus\Client\Struct\Ticket\CreateTASF;
4
5
class PassengerReference
6
{
7
    const TYPE_ADULT = 'PT';
8
    const TYPE_INFANT = 'PI';
9
10
    /**
11
     *
12
     * Must be PT for general case and PI for infant.
13
     *
14
     * self::TYPE_*
15
     *
16
     * @var string
17
     */
18
    public $type;
19
20
    /**
21
     * Must contain the tattoo number of the passenger (who has to pay the TASF).
22
     *
23
     * @var string|int
24
     */
25
    public $value;
26
27
    /**
28
     * PassengerTattoo constructor.
29
     *
30
     * @param string $type
31
     * @param string|int $value
32
     */
33 12
    public function __construct($type, $value)
34
    {
35 12
        $this->type = $type;
36 12
        $this->value = $value;
37 12
    }
38
}
39