GDS_GetRatesResult   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 59
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 0
dl 59
loc 59
ccs 0
cts 23
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 5 5 1
A getSchema() 4 4 1
A setSchema() 5 5 1
A getAny() 4 4 1
A setAny() 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 GDS_GetRatesResult
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 $schema
10
     */
11
    protected $schema = null;
12
13
    /**
14
     * @var string $any
15
     */
16
    protected $any = null;
17
18
    /**
19
     * @param string $schema
20
     * @param string $any
21
     */
22
    public function __construct($schema, $any)
23
    {
24
        $this->schema = $schema;
25
        $this->any = $any;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getSchema()
32
    {
33
        return $this->schema;
34
    }
35
36
    /**
37
     * @param string $schema
38
     * @return \Gueststream\PMS\IQWare\API\GDS_GetRatesResult
39
     */
40
    public function setSchema($schema)
41
    {
42
        $this->schema = $schema;
43
        return $this;
44
    }
45
46
    /**
47
     * @return string
48
     */
49
    public function getAny()
50
    {
51
        return $this->any;
52
    }
53
54
    /**
55
     * @param string $any
56
     * @return \Gueststream\PMS\IQWare\API\GDS_GetRatesResult
57
     */
58
    public function setAny($any)
59
    {
60
        $this->any = $any;
61
        return $this;
62
    }
63
}
64