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

TComplexTypeType::setTypeAccess()   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\MetadataV2\edm;
4
5
/**
6
 * Class representing TComplexTypeType
7
 *
8
 *
9
 * XSD Type: TComplexType
10
 */
11 View Code Duplication
class TComplexTypeType
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 string $typeAccess
21
     */
22
    private $typeAccess = null;
23
24
    /**
25
     * @property \MetadataV2\edm\TDocumentationType $documentation
26
     */
27
    private $documentation = null;
28
29
    /**
30
     * @property \MetadataV2\edm\TComplexTypePropertyType[] $property
31
     */
32
    private $property = array(
33
        
34
    );
35
36
    /**
37
     * Gets as name
38
     *
39
     * @return string
40
     */
41
    public function getName()
42
    {
43
        return $this->name;
44
    }
45
46
    /**
47
     * Sets a new name
48
     *
49
     * @param string $name
50
     * @return self
51
     */
52
    public function setName($name)
53
    {
54
        $this->name = $name;
55
        return $this;
56
    }
57
58
    /**
59
     * Gets as typeAccess
60
     *
61
     * @return string
62
     */
63
    public function getTypeAccess()
64
    {
65
        return $this->typeAccess;
66
    }
67
68
    /**
69
     * Sets a new typeAccess
70
     *
71
     * @param string $typeAccess
72
     * @return self
73
     */
74
    public function setTypeAccess($typeAccess)
75
    {
76
        $this->typeAccess = $typeAccess;
77
        return $this;
78
    }
79
80
    /**
81
     * Gets as documentation
82
     *
83
     * @return \MetadataV2\edm\TDocumentationType
84
     */
85
    public function getDocumentation()
86
    {
87
        return $this->documentation;
88
    }
89
90
    /**
91
     * Sets a new documentation
92
     *
93
     * @param \MetadataV2\edm\TDocumentationType $documentation
94
     * @return self
95
     */
96
    public function setDocumentation(\MetadataV2\edm\TDocumentationType $documentation)
97
    {
98
        $this->documentation = $documentation;
99
        return $this;
100
    }
101
102
    /**
103
     * Adds as property
104
     *
105
     * @return self
106
     * @param \MetadataV2\edm\TComplexTypePropertyType $property
107
     */
108
    public function addToProperty(\MetadataV2\edm\TComplexTypePropertyType $property)
109
    {
110
        $this->property[] = $property;
111
        return $this;
112
    }
113
114
    /**
115
     * isset property
116
     *
117
     * @param scalar $index
118
     * @return boolean
119
     */
120
    public function issetProperty($index)
121
    {
122
        return isset($this->property[$index]);
123
    }
124
125
    /**
126
     * unset property
127
     *
128
     * @param scalar $index
129
     * @return void
130
     */
131
    public function unsetProperty($index)
132
    {
133
        unset($this->property[$index]);
134
    }
135
136
    /**
137
     * Gets as property
138
     *
139
     * @return \MetadataV2\edm\TComplexTypePropertyType[]
140
     */
141
    public function getProperty()
142
    {
143
        return $this->property;
144
    }
145
146
    /**
147
     * Sets a new property
148
     *
149
     * @param \MetadataV2\edm\TComplexTypePropertyType[] $property
150
     * @return self
151
     */
152
    public function setProperty(array $property)
153
    {
154
        $this->property = $property;
155
        return $this;
156
    }
157
}
158