1 | <?php |
||
14 | class TReferenceType extends IsOK |
||
15 | { |
||
16 | |||
17 | /** |
||
18 | * @property string $uri |
||
19 | */ |
||
20 | private $uri = null; |
||
21 | |||
22 | /** |
||
23 | * @property \AlgoWeb\ODataMetadata\MetadataV4\edmx\TIncludeType[] $include |
||
24 | */ |
||
25 | private $include = array(); |
||
26 | |||
27 | /** |
||
28 | * @property \AlgoWeb\ODataMetadata\MetadataV4\edmx\TIncludeAnnotationsType[] $includeAnnotations |
||
29 | */ |
||
30 | private $includeAnnotations = array(); |
||
31 | |||
32 | /** |
||
33 | * @property \AlgoWeb\ODataMetadata\MetadataV4\edm\Annotation[] $annotation |
||
34 | */ |
||
35 | private $annotation = array(); |
||
36 | |||
37 | /** |
||
38 | * Gets as uri |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getUri() |
||
46 | |||
47 | /** |
||
48 | * Sets a new uri |
||
49 | * |
||
50 | * @param string $uri |
||
51 | * @return self |
||
52 | */ |
||
53 | public function setUri($uri) |
||
58 | |||
59 | /** |
||
60 | * Adds as include |
||
61 | * |
||
62 | * @return self |
||
63 | * @param \AlgoWeb\ODataMetadata\MetadataV4\edmx\TIncludeType $include |
||
64 | */ |
||
65 | public function addToInclude(TIncludeType $include) |
||
70 | |||
71 | /** |
||
72 | * isset include |
||
73 | * |
||
74 | * @param scalar $index |
||
75 | * @return boolean |
||
76 | */ |
||
77 | public function issetInclude($index) |
||
81 | |||
82 | /** |
||
83 | * unset include |
||
84 | * |
||
85 | * @param scalar $index |
||
86 | * @return void |
||
87 | */ |
||
88 | public function unsetInclude($index) |
||
92 | |||
93 | /** |
||
94 | * Gets as include |
||
95 | * |
||
96 | * @return \AlgoWeb\ODataMetadata\MetadataV4\edmx\TIncludeType[] |
||
97 | */ |
||
98 | public function getInclude() |
||
102 | |||
103 | /** |
||
104 | * Sets a new include |
||
105 | * |
||
106 | * @param \AlgoWeb\ODataMetadata\MetadataV4\edmx\TIncludeType[] $include |
||
107 | * @return self |
||
108 | */ |
||
109 | public function setInclude(array $include) |
||
114 | |||
115 | /** |
||
116 | * Adds as includeAnnotations |
||
117 | * |
||
118 | * @return self |
||
119 | * @param \AlgoWeb\ODataMetadata\MetadataV4\edmx\TIncludeAnnotationsType $includeAnnotations |
||
120 | */ |
||
121 | public function addToIncludeAnnotations(TIncludeAnnotationsType $includeAnnotations) |
||
126 | |||
127 | /** |
||
128 | * isset includeAnnotations |
||
129 | * |
||
130 | * @param scalar $index |
||
131 | * @return boolean |
||
132 | */ |
||
133 | public function issetIncludeAnnotations($index) |
||
137 | |||
138 | /** |
||
139 | * unset includeAnnotations |
||
140 | * |
||
141 | * @param scalar $index |
||
142 | * @return void |
||
143 | */ |
||
144 | public function unsetIncludeAnnotations($index) |
||
148 | |||
149 | /** |
||
150 | * Gets as includeAnnotations |
||
151 | * |
||
152 | * @return \AlgoWeb\ODataMetadata\MetadataV4\edmx\TIncludeAnnotationsType[] |
||
153 | */ |
||
154 | public function getIncludeAnnotations() |
||
158 | |||
159 | /** |
||
160 | * Sets a new includeAnnotations |
||
161 | * |
||
162 | * @param \AlgoWeb\ODataMetadata\MetadataV4\edmx\TIncludeAnnotationsType[] $includeAnnotations |
||
163 | * @return self |
||
164 | */ |
||
165 | public function setIncludeAnnotations(array $includeAnnotations) |
||
170 | |||
171 | /** |
||
172 | * Adds as annotation |
||
173 | * |
||
174 | * @return self |
||
175 | * @param \AlgoWeb\ODataMetadata\MetadataV4\edm\Annotation $annotation |
||
176 | */ |
||
177 | public function addToAnnotation(Annotation $annotation) |
||
182 | |||
183 | /** |
||
184 | * isset annotation |
||
185 | * |
||
186 | * @param scalar $index |
||
187 | * @return boolean |
||
188 | */ |
||
189 | public function issetAnnotation($index) |
||
193 | |||
194 | /** |
||
195 | * unset annotation |
||
196 | * |
||
197 | * @param scalar $index |
||
198 | * @return void |
||
199 | */ |
||
200 | public function unsetAnnotation($index) |
||
204 | |||
205 | /** |
||
206 | * Gets as annotation |
||
207 | * |
||
208 | * @return \AlgoWeb\ODataMetadata\MetadataV4\edm\Annotation[] |
||
209 | */ |
||
210 | public function getAnnotation() |
||
214 | |||
215 | /** |
||
216 | * Sets a new annotation |
||
217 | * |
||
218 | * @param \AlgoWeb\ODataMetadata\MetadataV4\edm\Annotation[] $annotation |
||
219 | * @return self |
||
220 | */ |
||
221 | public function setAnnotation(array $annotation) |
||
226 | |||
227 | protected function IsOK(&$msg) |
||
258 | } |
||
259 |
This check looks for unreachable code. It uses sophisticated control flow analysis techniques to find statements which will never be executed.
Unreachable code is most often the result of
return
,die
orexit
statements that have been added for debug purposes.In the above example, the last
return false
will never be executed, because a return statement has already been met in every possible execution path.