Bedding::setID_Bedding()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 5
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5 View Code Duplication
class Bedding
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_Bedding
10
     */
11
    protected $ID_Bedding = 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_Bedding
25
     */
26
    public function __construct($ID_Bedding)
27
    {
28
        $this->ID_Bedding = $ID_Bedding;
29
    }
30
31
    /**
32
     * @return int
33
     */
34
    public function getID_Bedding()
35
    {
36
        return $this->ID_Bedding;
37
    }
38
39
    /**
40
     * @param int $ID_Bedding
41
     * @return \Gueststream\PMS\IQWare\API\Bedding
42
     */
43
    public function setID_Bedding($ID_Bedding)
44
    {
45
        $this->ID_Bedding = $ID_Bedding;
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\Bedding
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\Bedding
78
     */
79
    public function setShortName($ShortName)
80
    {
81
        $this->ShortName = $ShortName;
82
        return $this;
83
    }
84
}
85