1 | <?php |
||
11 | trait TFunctionImportAttributesTrait |
||
12 | { |
||
13 | use TSimpleIdentifierTrait, AccessTypeTraits, IsOKToolboxTrait; |
||
14 | |||
15 | /** |
||
16 | * @property string $name |
||
17 | */ |
||
18 | private $name = null; |
||
19 | |||
20 | /** |
||
21 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionImportReturnTypeType[] $returnType |
||
22 | */ |
||
23 | private $returnType = []; |
||
24 | |||
25 | /** |
||
26 | * @property \AlgoWeb\ODataMetadata\MetadataV3\edm\TOperandType $entitySet |
||
27 | */ |
||
28 | private $entitySet = null; |
||
29 | |||
30 | /** |
||
31 | * @property boolean $isComposable |
||
32 | */ |
||
33 | private $isComposable = false; |
||
34 | |||
35 | /** |
||
36 | * @property boolean $isSideEffecting |
||
37 | */ |
||
38 | private $isSideEffecting = false; |
||
39 | |||
40 | /** |
||
41 | * @property boolean $isBindable |
||
42 | */ |
||
43 | private $isBindable = false; |
||
44 | |||
45 | /** |
||
46 | * @property string $methodAccess |
||
47 | */ |
||
48 | private $methodAccess = null; |
||
49 | |||
50 | /** |
||
51 | * Gets as name |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getName() |
||
59 | |||
60 | /** |
||
61 | * Sets a new name |
||
62 | * |
||
63 | * @param string $name |
||
64 | * @return self |
||
65 | */ |
||
66 | public function setName($name) |
||
71 | |||
72 | /** |
||
73 | * Adds as returnType |
||
74 | * |
||
75 | * @return self |
||
76 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionImportReturnTypeType $returnType |
||
77 | */ |
||
78 | public function addToReturnType(TFunctionImportReturnTypeType $returnType) |
||
83 | |||
84 | /** |
||
85 | * isset returnType |
||
86 | * |
||
87 | * @param scalar $index |
||
88 | * @return boolean |
||
89 | */ |
||
90 | public function issetReturnType($index) |
||
94 | |||
95 | /** |
||
96 | * unset returnType |
||
97 | * |
||
98 | * @param scalar $index |
||
99 | * @return void |
||
100 | */ |
||
101 | public function unsetReturnType($index) |
||
105 | |||
106 | /** |
||
107 | * Gets as returnType |
||
108 | * |
||
109 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionImportReturnTypeType[] |
||
110 | */ |
||
111 | public function getReturnType() |
||
115 | |||
116 | /** |
||
117 | * Sets a new returnType |
||
118 | * |
||
119 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TFunctionImportReturnTypeType[] $returnType |
||
120 | * @return self |
||
121 | */ |
||
122 | public function setReturnType(array $returnType) |
||
127 | |||
128 | /** |
||
129 | * Gets as entitySet |
||
130 | * |
||
131 | * @return \AlgoWeb\ODataMetadata\MetadataV3\edm\TOperandType |
||
132 | */ |
||
133 | public function getEntitySet() |
||
137 | |||
138 | /** |
||
139 | * Sets a new entitySet |
||
140 | * |
||
141 | * @param \AlgoWeb\ODataMetadata\MetadataV3\edm\TOperandType $entitySet |
||
142 | * @return self |
||
143 | */ |
||
144 | public function setEntitySet(TOperandType $entitySet) |
||
149 | |||
150 | /** |
||
151 | * Gets as isComposable |
||
152 | * |
||
153 | * @return boolean |
||
154 | */ |
||
155 | public function getIsComposable() |
||
159 | |||
160 | /** |
||
161 | * Sets a new isComposable |
||
162 | * |
||
163 | * @param boolean $isComposable |
||
164 | * @return self |
||
165 | */ |
||
166 | public function setIsComposable($isComposable) |
||
171 | |||
172 | /** |
||
173 | * Gets as isSideEffecting |
||
174 | * |
||
175 | * @return boolean |
||
176 | */ |
||
177 | public function getIsSideEffecting() |
||
181 | |||
182 | /** |
||
183 | * Sets a new isSideEffecting |
||
184 | * |
||
185 | * @param boolean $isSideEffecting |
||
186 | * @return self |
||
187 | */ |
||
188 | public function setIsSideEffecting($isSideEffecting) |
||
193 | |||
194 | /** |
||
195 | * Gets as isBindable |
||
196 | * |
||
197 | * @return boolean |
||
198 | */ |
||
199 | public function getIsBindable() |
||
203 | |||
204 | /** |
||
205 | * Sets a new isBindable |
||
206 | * |
||
207 | * @param boolean $isBindable |
||
208 | * @return self |
||
209 | */ |
||
210 | public function setIsBindable($isBindable) |
||
215 | |||
216 | /** |
||
217 | * Gets as methodAccess |
||
218 | * |
||
219 | * @return string |
||
220 | */ |
||
221 | public function getMethodAccess() |
||
225 | |||
226 | /** |
||
227 | * Sets a new methodAccess |
||
228 | * |
||
229 | * @param string $methodAccess |
||
230 | * @return self |
||
231 | */ |
||
232 | public function setMethodAccess($methodAccess) |
||
237 | |||
238 | |||
239 | public function isTFunctionImportAttributesValid(&$msg) |
||
268 | } |
||
269 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.