Passed
Push — master ( c03365...9d1091 )
by Alex
07:25
created

ParameterAnonymousType::getRowType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionReferenceExpressionType;
4
5
/**
6
 * Class representing ParameterAnonymousType
7
 */
8
class ParameterAnonymousType
9
{
10
11
    /**
12
     * @property string $type
13
     */
14
    private $type = null;
15
16
    /**
17
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TCollectionTypeType[] $collectionType
18
     */
19
    private $collectionType = array(
20
        
21
    );
22
23
    /**
24
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferenceTypeType[] $referenceType
25
     */
26
    private $referenceType = array(
27
        
28
    );
29
30
    /**
31
     * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyType[] $rowType
32
     */
33
    private $rowType = null;
34
35
    /**
36
     * Gets as type
37
     *
38
     * @return string
39
     */
40
    public function getType()
41
    {
42
        return $this->type;
43
    }
44
45
    /**
46
     * Sets a new type
47
     *
48
     * @param string $type
49
     * @return self
50
     */
51
    public function setType($type)
52
    {
53
        $this->type = $type;
54
        return $this;
55
    }
56
57
    /**
58
     * Adds as collectionType
59
     *
60
     * @return self
61
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TCollectionTypeType $collectionType
62
     */
63
    public function addToCollectionType(TCollectionTypeType $collectionType)
0 ignored issues
show
Bug introduced by
The type AlgoWeb\ODataMetadata\Me...ype\TCollectionTypeType was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
64
    {
65
        $this->collectionType[] = $collectionType;
66
        return $this;
67
    }
68
69
    /**
70
     * isset collectionType
71
     *
72
     * @param scalar $index
73
     * @return boolean
74
     */
75
    public function issetCollectionType($index)
76
    {
77
        return isset($this->collectionType[$index]);
78
    }
79
80
    /**
81
     * unset collectionType
82
     *
83
     * @param scalar $index
84
     * @return void
85
     */
86
    public function unsetCollectionType($index)
87
    {
88
        unset($this->collectionType[$index]);
89
    }
90
91
    /**
92
     * Gets as collectionType
93
     *
94
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TCollectionTypeType[]
95
     */
96
    public function getCollectionType()
97
    {
98
        return $this->collectionType;
99
    }
100
101
    /**
102
     * Sets a new collectionType
103
     *
104
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TCollectionTypeType[] $collectionType
105
     * @return self
106
     */
107
    public function setCollectionType(array $collectionType)
108
    {
109
        $this->collectionType = $collectionType;
110
        return $this;
111
    }
112
113
    /**
114
     * Adds as referenceType
115
     *
116
     * @return self
117
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferenceTypeType $referenceType
118
     */
119
    public function addToReferenceType(TReferenceTypeType $referenceType)
0 ignored issues
show
Bug introduced by
The type AlgoWeb\ODataMetadata\Me...Type\TReferenceTypeType was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
120
    {
121
        $this->referenceType[] = $referenceType;
122
        return $this;
123
    }
124
125
    /**
126
     * isset referenceType
127
     *
128
     * @param scalar $index
129
     * @return boolean
130
     */
131
    public function issetReferenceType($index)
132
    {
133
        return isset($this->referenceType[$index]);
134
    }
135
136
    /**
137
     * unset referenceType
138
     *
139
     * @param scalar $index
140
     * @return void
141
     */
142
    public function unsetReferenceType($index)
143
    {
144
        unset($this->referenceType[$index]);
145
    }
146
147
    /**
148
     * Gets as referenceType
149
     *
150
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferenceTypeType[]
151
     */
152
    public function getReferenceType()
153
    {
154
        return $this->referenceType;
155
    }
156
157
    /**
158
     * Sets a new referenceType
159
     *
160
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TReferenceTypeType[] $referenceType
161
     * @return self
162
     */
163
    public function setReferenceType(array $referenceType)
164
    {
165
        $this->referenceType = $referenceType;
166
        return $this;
167
    }
168
169
    /**
170
     * Adds as property
171
     *
172
     * @return self
173
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyType $property
174
     */
175
    public function addToRowType(TPropertyType $property)
0 ignored issues
show
Bug introduced by
The type AlgoWeb\ODataMetadata\Me...ssionType\TPropertyType was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
176
    {
177
        $this->rowType[] = $property;
178
        return $this;
179
    }
180
181
    /**
182
     * isset rowType
183
     *
184
     * @param scalar $index
185
     * @return boolean
186
     */
187
    public function issetRowType($index)
188
    {
189
        return isset($this->rowType[$index]);
190
    }
191
192
    /**
193
     * unset rowType
194
     *
195
     * @param scalar $index
196
     * @return void
197
     */
198
    public function unsetRowType($index)
199
    {
200
        unset($this->rowType[$index]);
201
    }
202
203
    /**
204
     * Gets as rowType
205
     *
206
     * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyType[]
207
     */
208
    public function getRowType()
209
    {
210
        return $this->rowType;
211
    }
212
213
    /**
214
     * Sets a new rowType
215
     *
216
     * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TPropertyType[] $rowType
217
     * @return self
218
     */
219
    public function setRowType(array $rowType)
220
    {
221
        $this->rowType = $rowType;
222
        return $this;
223
    }
224
}
225