Passed
Push — master ( 583371...613693 )
by Alex
03:44
created

TPropertyRefType   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 57
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 57
loc 57
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 4 4 1
A setName() 5 5 1
A getDocumentation() 4 4 1
A setDocumentation() 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 AlgoWeb\ODataMetadata\MetadataV3\edm\ssdl;
4
5
/**
6
 * Class representing TPropertyRefType
7
 *
8
 *
9
 * XSD Type: TPropertyRef
10
 */
11 View Code Duplication
class TPropertyRefType
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...
12
{
13
14
    /**
15
     * @property string $name
16
     */
17
    private $name = null;
18
19
    /**
20
     * @property \MetadataV3\edm\ssdl\TDocumentationType $documentation
21
     */
22
    private $documentation = null;
23
24
    /**
25
     * Gets as name
26
     *
27
     * @return string
28
     */
29
    public function getName()
30
    {
31
        return $this->name;
32
    }
33
34
    /**
35
     * Sets a new name
36
     *
37
     * @param string $name
38
     * @return self
39
     */
40
    public function setName($name)
41
    {
42
        $this->name = $name;
43
        return $this;
44
    }
45
46
    /**
47
     * Gets as documentation
48
     *
49
     * @return \MetadataV3\edm\ssdl\TDocumentationType
50
     */
51
    public function getDocumentation()
52
    {
53
        return $this->documentation;
54
    }
55
56
    /**
57
     * Sets a new documentation
58
     *
59
     * @param \MetadataV3\edm\ssdl\TDocumentationType $documentation
60
     * @return self
61
     */
62
    public function setDocumentation(\MetadataV3\edm\ssdl\TDocumentationType $documentation)
63
    {
64
        $this->documentation = $documentation;
65
        return $this;
66
    }
67
}
68