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

TPropertyRefType::setDocumentation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Importance

Changes 0
Metric Value
dl 5
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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