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

PassengerReference   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 34
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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