Passed
Push — master ( 26efa5...f69765 )
by Alex
03:20
created

MetadataV1/src/edm/EntityContainer.php (1 issue)

Labels
Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV1\edm;
4
5
use AlgoWeb\ODataMetadata\IsOK;
6
use AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\AssociationSetAnonymousType;
7
use AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\EntitySetAnonymousType;
8
use AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\FunctionImportAnonymousType;
9
10
/**
11
 * Class representing EntityContainer
12
 */
13
class EntityContainer extends IsOK
0 ignored issues
show
There is one abstract method isOK in this class; you could implement it, or declare this class as abstract.
Loading history...
14
{
15
16
    /**
17
     * @property string $name
18
     */
19
    private $name = null;
20
21
    /**
22
     * @property string $extends
23
     */
24
    private $extends = null;
25
26
    /**
27
     * @property \AlgoWeb\ODataMetadata\MetadataV1\edm\TDocumentationType $documentation
28
     */
29
    private $documentation = null;
30
31
    /**
32
     * @property \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\FunctionImportAnonymousType[]
33
     * $functionImport
34
     */
35
    private $functionImport = array();
36
37
    /**
38
     * @property \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\EntitySetAnonymousType[] $entitySet
39
     */
40
    private $entitySet = array();
41
42
    /**
43
     * @property \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\AssociationSetAnonymousType[]
44
     * $associationSet
45
     */
46
    private $associationSet = array();
47
48
    /**
49
     * Gets as name
50
     *
51
     * @return string
52
     */
53
    public function getName()
54
    {
55
        return $this->name;
56
    }
57
58
    /**
59
     * Sets a new name
60
     *
61
     * @param string $name
62
     * @return self
63
     */
64
    public function setName($name)
65
    {
66
        $this->name = $name;
67
        return $this;
68
    }
69
70
    /**
71
     * Gets as extends
72
     *
73
     * @return string
74
     */
75
    public function getExtends()
76
    {
77
        return $this->extends;
78
    }
79
80
    /**
81
     * Sets a new extends
82
     *
83
     * @param string $extends
84
     * @return self
85
     */
86
    public function setExtends($extends)
87
    {
88
        $this->extends = $extends;
89
        return $this;
90
    }
91
92
    /**
93
     * Gets as documentation
94
     *
95
     * @return \AlgoWeb\ODataMetadata\MetadataV1\edm\TDocumentationType
96
     */
97
    public function getDocumentation()
98
    {
99
        return $this->documentation;
100
    }
101
102
    /**
103
     * Sets a new documentation
104
     *
105
     * @param \AlgoWeb\ODataMetadata\MetadataV1\edm\TDocumentationType $documentation
106
     * @return self
107
     */
108
    public function setDocumentation(TDocumentationType $documentation)
109
    {
110
        $this->documentation = $documentation;
111
        return $this;
112
    }
113
114
    /**
115
     * Adds as functionImport
116
     *
117
     * @return self
118
     * @param \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\FunctionImportAnonymousType
119
     * $functionImport
120
     */
121
    public function addToFunctionImport(FunctionImportAnonymousType $functionImport)
122
    {
123
        $this->functionImport[] = $functionImport;
124
        return $this;
125
    }
126
127
    /**
128
     * isset functionImport
129
     *
130
     * @param scalar $index
131
     * @return boolean
132
     */
133
    public function issetFunctionImport($index)
134
    {
135
        return isset($this->functionImport[$index]);
136
    }
137
138
    /**
139
     * unset functionImport
140
     *
141
     * @param scalar $index
142
     * @return void
143
     */
144
    public function unsetFunctionImport($index)
145
    {
146
        unset($this->functionImport[$index]);
147
    }
148
149
    /**
150
     * Gets as functionImport
151
     *
152
     * @return \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\FunctionImportAnonymousType[]
153
     */
154
    public function getFunctionImport()
155
    {
156
        return $this->functionImport;
157
    }
158
159
    /**
160
     * Sets a new functionImport
161
     *
162
     * @param \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\FunctionImportAnonymousType[]
163
     * $functionImport
164
     * @return self
165
     */
166
    public function setFunctionImport(array $functionImport)
167
    {
168
        $this->functionImport = $functionImport;
169
        return $this;
170
    }
171
172
    /**
173
     * Adds as entitySet
174
     *
175
     * @return self
176
     * @param \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\EntitySetAnonymousType $entitySet
177
     */
178
    public function addToEntitySet(EntitySetAnonymousType $entitySet)
179
    {
180
        $this->entitySet[] = $entitySet;
181
        return $this;
182
    }
183
184
    /**
185
     * isset entitySet
186
     *
187
     * @param scalar $index
188
     * @return boolean
189
     */
190
    public function issetEntitySet($index)
191
    {
192
        return isset($this->entitySet[$index]);
193
    }
194
195
    /**
196
     * unset entitySet
197
     *
198
     * @param scalar $index
199
     * @return void
200
     */
201
    public function unsetEntitySet($index)
202
    {
203
        unset($this->entitySet[$index]);
204
    }
205
206
    /**
207
     * Gets as entitySet
208
     *
209
     * @return \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\EntitySetAnonymousType[]
210
     */
211
    public function getEntitySet()
212
    {
213
        return $this->entitySet;
214
    }
215
216
    /**
217
     * Sets a new entitySet
218
     *
219
     * @param \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\EntitySetAnonymousType[] $entitySet
220
     * @return self
221
     */
222
    public function setEntitySet(array $entitySet)
223
    {
224
        $this->entitySet = $entitySet;
225
        return $this;
226
    }
227
228
    /**
229
     * Adds as associationSet
230
     *
231
     * @return self
232
     * @param \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\AssociationSetAnonymousType
233
     * $associationSet
234
     */
235
    public function addToAssociationSet(AssociationSetAnonymousType $associationSet)
236
    {
237
        $this->associationSet[] = $associationSet;
238
        return $this;
239
    }
240
241
    /**
242
     * isset associationSet
243
     *
244
     * @param scalar $index
245
     * @return boolean
246
     */
247
    public function issetAssociationSet($index)
248
    {
249
        return isset($this->associationSet[$index]);
250
    }
251
252
    /**
253
     * unset associationSet
254
     *
255
     * @param scalar $index
256
     * @return void
257
     */
258
    public function unsetAssociationSet($index)
259
    {
260
        unset($this->associationSet[$index]);
261
    }
262
263
    /**
264
     * Gets as associationSet
265
     *
266
     * @return \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\AssociationSetAnonymousType[]
267
     */
268
    public function getAssociationSet()
269
    {
270
        return $this->associationSet;
271
    }
272
273
    /**
274
     * Sets a new associationSet
275
     *
276
     * @param \AlgoWeb\ODataMetadata\MetadataV1\edm\EntityContainer\AssociationSetAnonymousType[]
277
     * $associationSet
278
     * @return self
279
     */
280
    public function setAssociationSet(array $associationSet)
281
    {
282
        $this->associationSet = $associationSet;
283
        return $this;
284
    }
285
}
286