WebRes_GetCondoOwnerAdminReservationsResult   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 84
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 0
dl 84
loc 84
ccs 0
cts 33
cp 0
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 6 6 1
A getAny() 4 4 1
A setAny() 5 5 1
A getNamespace() 4 4 1
A setNamespace() 5 5 1
A getTableTypeName() 4 4 1
A setTableTypeName() 5 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 WebRes_GetCondoOwnerAdminReservationsResult
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 $any
10
     */
11
    protected $any = null;
12
13
    /**
14
     * @var UNKNOWN $namespace
15
     */
16
    protected $namespace = null;
17
18
    /**
19
     * @var UNKNOWN $tableTypeName
20
     */
21
    protected $tableTypeName = null;
22
23
    /**
24
     * @param string $any
25
     * @param UNKNOWN $namespace
26
     * @param UNKNOWN $tableTypeName
27
     */
28
    public function __construct($any, $namespace, $tableTypeName)
29
    {
30
        $this->any = $any;
31
        $this->namespace = $namespace;
32
        $this->tableTypeName = $tableTypeName;
33
    }
34
35
    /**
36
     * @return string
37
     */
38
    public function getAny()
39
    {
40
        return $this->any;
41
    }
42
43
    /**
44
     * @param string $any
45
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetCondoOwnerAdminReservationsResult
46
     */
47
    public function setAny($any)
48
    {
49
        $this->any = $any;
50
        return $this;
51
    }
52
53
    /**
54
     * @return UNKNOWN
55
     */
56
    public function getNamespace()
57
    {
58
        return $this->namespace;
59
    }
60
61
    /**
62
     * @param UNKNOWN $namespace
63
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetCondoOwnerAdminReservationsResult
64
     */
65
    public function setNamespace($namespace)
66
    {
67
        $this->namespace = $namespace;
68
        return $this;
69
    }
70
71
    /**
72
     * @return UNKNOWN
73
     */
74
    public function getTableTypeName()
75
    {
76
        return $this->tableTypeName;
77
    }
78
79
    /**
80
     * @param UNKNOWN $tableTypeName
81
     * @return \Gueststream\PMS\IQWare\API\WebRes_GetCondoOwnerAdminReservationsResult
82
     */
83
    public function setTableTypeName($tableTypeName)
84
    {
85
        $this->tableTypeName = $tableTypeName;
86
        return $this;
87
    }
88
}
89