RateReason::__construct()   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 1
crap 2
1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5 View Code Duplication
class RateReason
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 int $ID_RateReason
10
     */
11
    protected $ID_RateReason = null;
12
13
    /**
14
     * @var string $Name
15
     */
16
    protected $Name = null;
17
18
    /**
19
     * @var string $ShortName
20
     */
21
    protected $ShortName = null;
22
23
    /**
24
     * @param int $ID_RateReason
25
     */
26
    public function __construct($ID_RateReason)
27
    {
28
        $this->ID_RateReason = $ID_RateReason;
29
    }
30
31
    /**
32
     * @return int
33
     */
34
    public function getID_RateReason()
35
    {
36
        return $this->ID_RateReason;
37
    }
38
39
    /**
40
     * @param int $ID_RateReason
41
     * @return \Gueststream\PMS\IQWare\API\RateReason
42
     */
43
    public function setID_RateReason($ID_RateReason)
44
    {
45
        $this->ID_RateReason = $ID_RateReason;
46
        return $this;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getName()
53
    {
54
        return $this->Name;
55
    }
56
57
    /**
58
     * @param string $Name
59
     * @return \Gueststream\PMS\IQWare\API\RateReason
60
     */
61
    public function setName($Name)
62
    {
63
        $this->Name = $Name;
64
        return $this;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getShortName()
71
    {
72
        return $this->ShortName;
73
    }
74
75
    /**
76
     * @param string $ShortName
77
     * @return \Gueststream\PMS\IQWare\API\RateReason
78
     */
79
    public function setShortName($ShortName)
80
    {
81
        $this->ShortName = $ShortName;
82
        return $this;
83
    }
84
}
85