ProcessBooking   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 94
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 1
dl 0
loc 94
ccs 0
cts 30
cp 0
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getNextTrips() 0 4 1
A getPincode() 0 4 1
A getGmapsUrl() 0 4 1
A getReservationId() 0 4 1
A getHotelContactInfo() 0 4 1
A getAttributeMap() 0 10 1
1
<?php
2
3
namespace DJStarCOM\BookingComSDK\Models;
4
5
use stdClass;
6
7
class ProcessBooking extends Model
8
{
9
    /**
10
     * Prediction of booker's next trips
11
     * display conditionnext_trips=3
12
     * @var array of obj
13
     */
14
    protected $next_trips;
15
16
    /**
17
     * A four-digit number used in combination with the booking number to give the customer access to view,
18
     * modify or cancel their booking. In th test mode, this value will be '0000'.
19
     *
20
     * @var  string
21
     */
22
    protected $pincode;
23
24
    /**
25
     * Link to the google maps static map for this hotel's location.
26
     * It is only displayed for Windows 8.0 affiliate ids.
27
     * display conditionaffiliate_id=000000
28
     *
29
     * @var string
30
     */
31
    protected $gmaps_url;
32
33
    /**
34
     * A nine or ten digit number that uniquely identifies the booking that was just made.
35
     * In the test mode, this value will be '0'.
36
     *
37
     * @var int
38
     */
39
    protected $reservation_id;
40
41
    /**
42
     * display conditionextras=hotel_contact_info
43
     * @var object
44
     */
45
    protected $hotel_contact_info;
46
47
    /**
48
     * @return array of objects
49
     */
50
    public function getNextTrips(): ?array
51
    {
52
        return $this->next_trips;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getPincode(): string
59
    {
60
        return $this->pincode;
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    public function getGmapsUrl(): ?string
67
    {
68
        return $this->gmaps_url;
69
    }
70
71
    /**
72
     * @return int
73
     */
74
    public function getReservationId(): int
75
    {
76
        return $this->reservation_id;
77
    }
78
79
    /**
80
     * @return object
81
     */
82
    public function getHotelContactInfo(): stdClass
83
    {
84
        return $this->hotel_contact_info;
85
    }
86
87
    /**
88
     * @return array
89
     */
90
    protected function getAttributeMap(): array
91
    {
92
        return [
93
            'next_trips'         => 'array',
94
            'pincode'            => 'string',
95
            'gmaps_url'          => 'string',
96
            'reservation_id'     => 'integer',
97
            'hotel_contact_info' => 'object',
98
        ];
99
    }
100
}
101