Completed
Push — master ( 090086...39b0a3 )
by Josh
30:05 queued 13:42
created

GetAllRoomsSpecifications   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 61
Duplicated Lines 96.72 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 59
loc 61
rs 10
c 1
b 1
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 5 5 1
A getGuid() 4 4 1
A setGuid() 5 5 1
A getStrISOLanguageCode() 4 4 1
A setStrISOLanguageCode() 4 5 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5 View Code Duplication
class GetAllRoomsSpecifications
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 $guid
10
     */
11
    protected $guid = null;
12
13
    /**
14
     * @var string $strISOLanguageCode
15
     */
16
    protected $strISOLanguageCode = null;
17
18
    /**
19
     * @param int $guid
20
     * @param string $strISOLanguageCode
21
     */
22
    public function __construct($guid, $strISOLanguageCode)
23
    {
24
        $this->guid = $guid;
25
        $this->strISOLanguageCode = $strISOLanguageCode;
26
    }
27
28
    /**
29
     * @return int
30
     */
31
    public function getGuid()
32
    {
33
        return $this->guid;
34
    }
35
36
    /**
37
     * @param int $guid
38
     *
39
*@return \Gueststream\PMS\IQWare\API\GetAllRoomsSpecifications
40
     */
41
    public function setGuid($guid)
42
    {
43
        $this->guid = $guid;
44
        return $this;
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getStrISOLanguageCode()
51
    {
52
        return $this->strISOLanguageCode;
53
    }
54
55
    /**
56
     * @param string $strISOLanguageCode
57
     *
58
*@return \Gueststream\PMS\IQWare\API\GetAllRoomsSpecifications
59
     */
60
    public function setStrISOLanguageCode($strISOLanguageCode)
61
    {
62
        $this->strISOLanguageCode = $strISOLanguageCode;
63
        return $this;
64
    }
65
}
66