cAddresses   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 78
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 78
loc 78
ccs 0
cts 30
cp 0
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 4 4 1
A getProfile() 4 4 1
A setProfile() 5 5 1
A getBkgContact() 4 4 1
A setBkgContact() 5 5 1
A getBilling() 4 4 1
A setBilling() 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 cAddresses
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 cAddress $Profile
10
     */
11
    protected $Profile = null;
12
13
    /**
14
     * @var cAddress $BkgContact
15
     */
16
    protected $BkgContact = null;
17
18
    /**
19
     * @var cAddress $Billing
20
     */
21
    protected $Billing = null;
22
23
    
24
    public function __construct()
25
    {
26
    
27
    }
28
29
    /**
30
     * @return cAddress
31
     */
32
    public function getProfile()
33
    {
34
        return $this->Profile;
35
    }
36
37
    /**
38
     * @param cAddress $Profile
39
     * @return \Gueststream\PMS\IQWare\API\cAddresses
40
     */
41
    public function setProfile($Profile)
42
    {
43
        $this->Profile = $Profile;
44
        return $this;
45
    }
46
47
    /**
48
     * @return cAddress
49
     */
50
    public function getBkgContact()
51
    {
52
        return $this->BkgContact;
53
    }
54
55
    /**
56
     * @param cAddress $BkgContact
57
     * @return \Gueststream\PMS\IQWare\API\cAddresses
58
     */
59
    public function setBkgContact($BkgContact)
60
    {
61
        $this->BkgContact = $BkgContact;
62
        return $this;
63
    }
64
65
    /**
66
     * @return cAddress
67
     */
68
    public function getBilling()
69
    {
70
        return $this->Billing;
71
    }
72
73
    /**
74
     * @param cAddress $Billing
75
     * @return \Gueststream\PMS\IQWare\API\cAddresses
76
     */
77
    public function setBilling($Billing)
78
    {
79
        $this->Billing = $Billing;
80
        return $this;
81
    }
82
}
83