WebRes_GetAllMemberReservations::getPassword()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 4
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5 View Code Duplication
class WebRes_GetAllMemberReservations
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
6
{
7
8
    /**
9
     * @var string $guid
10
     */
11
    protected $guid = null;
12
13
    /**
14
     * @var string $userName
15
     */
16
    protected $userName = null;
17
18
    /**
19
     * @var string $password
20
     */
21
    protected $password = null;
22
23
    /**
24
     * @param string $guid
25
     * @param string $userName
26
     * @param string $password
27
     */
28
    public function __construct($guid, $userName, $password)
29
    {
30
        $this->guid = $guid;
31
        $this->userName = $userName;
32
        $this->password = $password;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getGuid()
39
    {
40
        return $this->guid;
41
    }
42
43
    /**
44
     * @param string $guid
45
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetAllMemberReservations
46
     */
47
    public function setGuid($guid)
48
    {
49
        $this->guid = $guid;
50
        return $this;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getUserName()
57
    {
58
        return $this->userName;
59
    }
60
61
    /**
62
     * @param string $userName
63
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetAllMemberReservations
64
     */
65
    public function setUserName($userName)
66
    {
67
        $this->userName = $userName;
68
        return $this;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getPassword()
75
    {
76
        return $this->password;
77
    }
78
79
    /**
80
     * @param string $password
81
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetAllMemberReservations
82
     */
83
    public function setPassword($password)
84
    {
85
        $this->password = $password;
86
        return $this;
87
    }
88
}
89