Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
Complex classes like TTwoChildrenExpressionType often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes. You can also have a look at the cohesion graph to spot any un-connected, or weakly-connected components.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use TTwoChildrenExpressionType, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
11 | View Code Duplication | class TTwoChildrenExpressionType |
|
|
|||
12 | { |
||
13 | |||
14 | /** |
||
15 | * @property \MetadataV4\edm\Annotation[] $annotation |
||
16 | */ |
||
17 | private $annotation = array( |
||
18 | |||
19 | ); |
||
20 | |||
21 | /** |
||
22 | * @property string[] $binary |
||
23 | */ |
||
24 | private $binary = array( |
||
25 | |||
26 | ); |
||
27 | |||
28 | /** |
||
29 | * @property boolean[] $bool |
||
30 | */ |
||
31 | private $bool = array( |
||
32 | |||
33 | ); |
||
34 | |||
35 | /** |
||
36 | * @property \DateTime[] $date |
||
37 | */ |
||
38 | private $date = array( |
||
39 | |||
40 | ); |
||
41 | |||
42 | /** |
||
43 | * @property \DateTime[] $dateTimeOffset |
||
44 | */ |
||
45 | private $dateTimeOffset = array( |
||
46 | |||
47 | ); |
||
48 | |||
49 | /** |
||
50 | * @property float[] $decimal |
||
51 | */ |
||
52 | private $decimal = array( |
||
53 | |||
54 | ); |
||
55 | |||
56 | /** |
||
57 | * @property \DateInterval[] $duration |
||
58 | */ |
||
59 | private $duration = array( |
||
60 | |||
61 | ); |
||
62 | |||
63 | /** |
||
64 | * @property string[] $enumMember |
||
65 | */ |
||
66 | private $enumMember = null; |
||
67 | |||
68 | /** |
||
69 | * @property float[] $float |
||
70 | */ |
||
71 | private $float = array( |
||
72 | |||
73 | ); |
||
74 | |||
75 | /** |
||
76 | * @property string[] $guid |
||
77 | */ |
||
78 | private $guid = array( |
||
79 | |||
80 | ); |
||
81 | |||
82 | /** |
||
83 | * @property integer[] $int |
||
84 | */ |
||
85 | private $int = array( |
||
86 | |||
87 | ); |
||
88 | |||
89 | /** |
||
90 | * @property string[] $string |
||
91 | */ |
||
92 | private $string = array( |
||
93 | |||
94 | ); |
||
95 | |||
96 | /** |
||
97 | * @property \DateTime[] $timeOfDay |
||
98 | */ |
||
99 | private $timeOfDay = array( |
||
100 | |||
101 | ); |
||
102 | |||
103 | /** |
||
104 | * @property string[] $annotationPath |
||
105 | */ |
||
106 | private $annotationPath = array( |
||
107 | |||
108 | ); |
||
109 | |||
110 | /** |
||
111 | * @property \MetadataV4\edm\TApplyExpressionType[] $apply |
||
112 | */ |
||
113 | private $apply = array( |
||
114 | |||
115 | ); |
||
116 | |||
117 | /** |
||
118 | * @property \MetadataV4\edm\TCastOrIsOfExpressionType[] $cast |
||
119 | */ |
||
120 | private $cast = array( |
||
121 | |||
122 | ); |
||
123 | |||
124 | /** |
||
125 | * @property \MetadataV4\edm\TCollectionExpressionType[] $collection |
||
126 | */ |
||
127 | private $collection = array( |
||
128 | |||
129 | ); |
||
130 | |||
131 | /** |
||
132 | * @property \MetadataV4\edm\TIfExpressionType[] $if |
||
133 | */ |
||
134 | private $if = array( |
||
135 | |||
136 | ); |
||
137 | |||
138 | /** |
||
139 | * @property \MetadataV4\edm\TTwoChildrenExpressionType[] $eq |
||
140 | */ |
||
141 | private $eq = array( |
||
142 | |||
143 | ); |
||
144 | |||
145 | /** |
||
146 | * @property \MetadataV4\edm\TTwoChildrenExpressionType[] $ne |
||
147 | */ |
||
148 | private $ne = array( |
||
149 | |||
150 | ); |
||
151 | |||
152 | /** |
||
153 | * @property \MetadataV4\edm\TTwoChildrenExpressionType[] $ge |
||
154 | */ |
||
155 | private $ge = array( |
||
156 | |||
157 | ); |
||
158 | |||
159 | /** |
||
160 | * @property \MetadataV4\edm\TTwoChildrenExpressionType[] $gt |
||
161 | */ |
||
162 | private $gt = array( |
||
163 | |||
164 | ); |
||
165 | |||
166 | /** |
||
167 | * @property \MetadataV4\edm\TTwoChildrenExpressionType[] $le |
||
168 | */ |
||
169 | private $le = array( |
||
170 | |||
171 | ); |
||
172 | |||
173 | /** |
||
174 | * @property \MetadataV4\edm\TTwoChildrenExpressionType[] $lt |
||
175 | */ |
||
176 | private $lt = array( |
||
177 | |||
178 | ); |
||
179 | |||
180 | /** |
||
181 | * @property \MetadataV4\edm\TTwoChildrenExpressionType[] $and |
||
182 | */ |
||
183 | private $and = array( |
||
184 | |||
185 | ); |
||
186 | |||
187 | /** |
||
188 | * @property \MetadataV4\edm\TTwoChildrenExpressionType[] $or |
||
189 | */ |
||
190 | private $or = array( |
||
191 | |||
192 | ); |
||
193 | |||
194 | /** |
||
195 | * @property \MetadataV4\edm\TOneChildExpressionType[] $not |
||
196 | */ |
||
197 | private $not = array( |
||
198 | |||
199 | ); |
||
200 | |||
201 | /** |
||
202 | * @property \MetadataV4\edm\TCastOrIsOfExpressionType[] $isOf |
||
203 | */ |
||
204 | private $isOf = array( |
||
205 | |||
206 | ); |
||
207 | |||
208 | /** |
||
209 | * @property \MetadataV4\edm\TLabeledElementExpressionType[] $labeledElement |
||
210 | */ |
||
211 | private $labeledElement = array( |
||
212 | |||
213 | ); |
||
214 | |||
215 | /** |
||
216 | * @property string[] $labeledElementReference |
||
217 | */ |
||
218 | private $labeledElementReference = array( |
||
219 | |||
220 | ); |
||
221 | |||
222 | /** |
||
223 | * @property \MetadataV4\edm\Annotation[] $null |
||
224 | */ |
||
225 | private $null = null; |
||
226 | |||
227 | /** |
||
228 | * @property string[] $navigationPropertyPath |
||
229 | */ |
||
230 | private $navigationPropertyPath = array( |
||
231 | |||
232 | ); |
||
233 | |||
234 | /** |
||
235 | * @property string[] $path |
||
236 | */ |
||
237 | private $path = array( |
||
238 | |||
239 | ); |
||
240 | |||
241 | /** |
||
242 | * @property string[] $propertyPath |
||
243 | */ |
||
244 | private $propertyPath = array( |
||
245 | |||
246 | ); |
||
247 | |||
248 | /** |
||
249 | * @property \MetadataV4\edm\TRecordExpressionType[] $record |
||
250 | */ |
||
251 | private $record = array( |
||
252 | |||
253 | ); |
||
254 | |||
255 | /** |
||
256 | * @property \MetadataV4\edm\TOneChildExpressionType[] $urlRef |
||
257 | */ |
||
258 | private $urlRef = array( |
||
259 | |||
260 | ); |
||
261 | |||
262 | /** |
||
263 | * Adds as annotation |
||
264 | * |
||
265 | * @return self |
||
266 | * @param \MetadataV4\edm\Annotation $annotation |
||
267 | */ |
||
268 | public function addToAnnotation(\MetadataV4\edm\Annotation $annotation) |
||
273 | |||
274 | /** |
||
275 | * isset annotation |
||
276 | * |
||
277 | * @param scalar $index |
||
278 | * @return boolean |
||
279 | */ |
||
280 | public function issetAnnotation($index) |
||
284 | |||
285 | /** |
||
286 | * unset annotation |
||
287 | * |
||
288 | * @param scalar $index |
||
289 | * @return void |
||
290 | */ |
||
291 | public function unsetAnnotation($index) |
||
295 | |||
296 | /** |
||
297 | * Gets as annotation |
||
298 | * |
||
299 | * @return \MetadataV4\edm\Annotation[] |
||
300 | */ |
||
301 | public function getAnnotation() |
||
305 | |||
306 | /** |
||
307 | * Sets a new annotation |
||
308 | * |
||
309 | * @param \MetadataV4\edm\Annotation[] $annotation |
||
310 | * @return self |
||
311 | */ |
||
312 | public function setAnnotation(array $annotation) |
||
317 | |||
318 | /** |
||
319 | * Adds as binary |
||
320 | * |
||
321 | * @return self |
||
322 | * @param string $binary |
||
323 | */ |
||
324 | public function addToBinary($binary) |
||
329 | |||
330 | /** |
||
331 | * isset binary |
||
332 | * |
||
333 | * @param scalar $index |
||
334 | * @return boolean |
||
335 | */ |
||
336 | public function issetBinary($index) |
||
340 | |||
341 | /** |
||
342 | * unset binary |
||
343 | * |
||
344 | * @param scalar $index |
||
345 | * @return void |
||
346 | */ |
||
347 | public function unsetBinary($index) |
||
351 | |||
352 | /** |
||
353 | * Gets as binary |
||
354 | * |
||
355 | * @return string[] |
||
356 | */ |
||
357 | public function getBinary() |
||
361 | |||
362 | /** |
||
363 | * Sets a new binary |
||
364 | * |
||
365 | * @param string $binary |
||
366 | * @return self |
||
367 | */ |
||
368 | public function setBinary(array $binary) |
||
373 | |||
374 | /** |
||
375 | * Adds as bool |
||
376 | * |
||
377 | * @return self |
||
378 | * @param boolean $bool |
||
379 | */ |
||
380 | public function addToBool($bool) |
||
385 | |||
386 | /** |
||
387 | * isset bool |
||
388 | * |
||
389 | * @param scalar $index |
||
390 | * @return boolean |
||
391 | */ |
||
392 | public function issetBool($index) |
||
396 | |||
397 | /** |
||
398 | * unset bool |
||
399 | * |
||
400 | * @param scalar $index |
||
401 | * @return void |
||
402 | */ |
||
403 | public function unsetBool($index) |
||
407 | |||
408 | /** |
||
409 | * Gets as bool |
||
410 | * |
||
411 | * @return boolean[] |
||
412 | */ |
||
413 | public function getBool() |
||
417 | |||
418 | /** |
||
419 | * Sets a new bool |
||
420 | * |
||
421 | * @param boolean $bool |
||
422 | * @return self |
||
423 | */ |
||
424 | public function setBool(array $bool) |
||
429 | |||
430 | /** |
||
431 | * Adds as date |
||
432 | * |
||
433 | * @return self |
||
434 | * @param \DateTime $date |
||
435 | */ |
||
436 | public function addToDate(\DateTime $date) |
||
441 | |||
442 | /** |
||
443 | * isset date |
||
444 | * |
||
445 | * @param scalar $index |
||
446 | * @return boolean |
||
447 | */ |
||
448 | public function issetDate($index) |
||
452 | |||
453 | /** |
||
454 | * unset date |
||
455 | * |
||
456 | * @param scalar $index |
||
457 | * @return void |
||
458 | */ |
||
459 | public function unsetDate($index) |
||
463 | |||
464 | /** |
||
465 | * Gets as date |
||
466 | * |
||
467 | * @return \DateTime[] |
||
468 | */ |
||
469 | public function getDate() |
||
473 | |||
474 | /** |
||
475 | * Sets a new date |
||
476 | * |
||
477 | * @param \DateTime $date |
||
478 | * @return self |
||
479 | */ |
||
480 | public function setDate(array $date) |
||
485 | |||
486 | /** |
||
487 | * Adds as dateTimeOffset |
||
488 | * |
||
489 | * @return self |
||
490 | * @param \DateTime $dateTimeOffset |
||
491 | */ |
||
492 | public function addToDateTimeOffset(\DateTime $dateTimeOffset) |
||
497 | |||
498 | /** |
||
499 | * isset dateTimeOffset |
||
500 | * |
||
501 | * @param scalar $index |
||
502 | * @return boolean |
||
503 | */ |
||
504 | public function issetDateTimeOffset($index) |
||
508 | |||
509 | /** |
||
510 | * unset dateTimeOffset |
||
511 | * |
||
512 | * @param scalar $index |
||
513 | * @return void |
||
514 | */ |
||
515 | public function unsetDateTimeOffset($index) |
||
519 | |||
520 | /** |
||
521 | * Gets as dateTimeOffset |
||
522 | * |
||
523 | * @return \DateTime[] |
||
524 | */ |
||
525 | public function getDateTimeOffset() |
||
529 | |||
530 | /** |
||
531 | * Sets a new dateTimeOffset |
||
532 | * |
||
533 | * @param \DateTime $dateTimeOffset |
||
534 | * @return self |
||
535 | */ |
||
536 | public function setDateTimeOffset(array $dateTimeOffset) |
||
541 | |||
542 | /** |
||
543 | * Adds as decimal |
||
544 | * |
||
545 | * @return self |
||
546 | * @param float $decimal |
||
547 | */ |
||
548 | public function addToDecimal($decimal) |
||
553 | |||
554 | /** |
||
555 | * isset decimal |
||
556 | * |
||
557 | * @param scalar $index |
||
558 | * @return boolean |
||
559 | */ |
||
560 | public function issetDecimal($index) |
||
564 | |||
565 | /** |
||
566 | * unset decimal |
||
567 | * |
||
568 | * @param scalar $index |
||
569 | * @return void |
||
570 | */ |
||
571 | public function unsetDecimal($index) |
||
575 | |||
576 | /** |
||
577 | * Gets as decimal |
||
578 | * |
||
579 | * @return float[] |
||
580 | */ |
||
581 | public function getDecimal() |
||
585 | |||
586 | /** |
||
587 | * Sets a new decimal |
||
588 | * |
||
589 | * @param float $decimal |
||
590 | * @return self |
||
591 | */ |
||
592 | public function setDecimal(array $decimal) |
||
597 | |||
598 | /** |
||
599 | * Adds as duration |
||
600 | * |
||
601 | * @return self |
||
602 | * @param \DateInterval $duration |
||
603 | */ |
||
604 | public function addToDuration(\DateInterval $duration) |
||
609 | |||
610 | /** |
||
611 | * isset duration |
||
612 | * |
||
613 | * @param scalar $index |
||
614 | * @return boolean |
||
615 | */ |
||
616 | public function issetDuration($index) |
||
620 | |||
621 | /** |
||
622 | * unset duration |
||
623 | * |
||
624 | * @param scalar $index |
||
625 | * @return void |
||
626 | */ |
||
627 | public function unsetDuration($index) |
||
631 | |||
632 | /** |
||
633 | * Gets as duration |
||
634 | * |
||
635 | * @return \DateInterval[] |
||
636 | */ |
||
637 | public function getDuration() |
||
641 | |||
642 | /** |
||
643 | * Sets a new duration |
||
644 | * |
||
645 | * @param \DateInterval $duration |
||
646 | * @return self |
||
647 | */ |
||
648 | public function setDuration(array $duration) |
||
653 | |||
654 | /** |
||
655 | * Adds as enumMember |
||
656 | * |
||
657 | * @return self |
||
658 | * @param string $enumMember |
||
659 | */ |
||
660 | public function addToEnumMember($enumMember) |
||
665 | |||
666 | /** |
||
667 | * isset enumMember |
||
668 | * |
||
669 | * @param scalar $index |
||
670 | * @return boolean |
||
671 | */ |
||
672 | public function issetEnumMember($index) |
||
676 | |||
677 | /** |
||
678 | * unset enumMember |
||
679 | * |
||
680 | * @param scalar $index |
||
681 | * @return void |
||
682 | */ |
||
683 | public function unsetEnumMember($index) |
||
687 | |||
688 | /** |
||
689 | * Gets as enumMember |
||
690 | * |
||
691 | * @return string[] |
||
692 | */ |
||
693 | public function getEnumMember() |
||
697 | |||
698 | /** |
||
699 | * Sets a new enumMember |
||
700 | * |
||
701 | * @param string $enumMember |
||
702 | * @return self |
||
703 | */ |
||
704 | public function setEnumMember(array $enumMember) |
||
709 | |||
710 | /** |
||
711 | * Adds as float |
||
712 | * |
||
713 | * @return self |
||
714 | * @param float $float |
||
715 | */ |
||
716 | public function addToFloat($float) |
||
721 | |||
722 | /** |
||
723 | * isset float |
||
724 | * |
||
725 | * @param scalar $index |
||
726 | * @return boolean |
||
727 | */ |
||
728 | public function issetFloat($index) |
||
732 | |||
733 | /** |
||
734 | * unset float |
||
735 | * |
||
736 | * @param scalar $index |
||
737 | * @return void |
||
738 | */ |
||
739 | public function unsetFloat($index) |
||
743 | |||
744 | /** |
||
745 | * Gets as float |
||
746 | * |
||
747 | * @return float[] |
||
748 | */ |
||
749 | public function getFloat() |
||
753 | |||
754 | /** |
||
755 | * Sets a new float |
||
756 | * |
||
757 | * @param float $float |
||
758 | * @return self |
||
759 | */ |
||
760 | public function setFloat(array $float) |
||
765 | |||
766 | /** |
||
767 | * Adds as guid |
||
768 | * |
||
769 | * @return self |
||
770 | * @param string $guid |
||
771 | */ |
||
772 | public function addToGuid($guid) |
||
777 | |||
778 | /** |
||
779 | * isset guid |
||
780 | * |
||
781 | * @param scalar $index |
||
782 | * @return boolean |
||
783 | */ |
||
784 | public function issetGuid($index) |
||
788 | |||
789 | /** |
||
790 | * unset guid |
||
791 | * |
||
792 | * @param scalar $index |
||
793 | * @return void |
||
794 | */ |
||
795 | public function unsetGuid($index) |
||
799 | |||
800 | /** |
||
801 | * Gets as guid |
||
802 | * |
||
803 | * @return string[] |
||
804 | */ |
||
805 | public function getGuid() |
||
809 | |||
810 | /** |
||
811 | * Sets a new guid |
||
812 | * |
||
813 | * @param string $guid |
||
814 | * @return self |
||
815 | */ |
||
816 | public function setGuid(array $guid) |
||
821 | |||
822 | /** |
||
823 | * Adds as int |
||
824 | * |
||
825 | * @return self |
||
826 | * @param integer $int |
||
827 | */ |
||
828 | public function addToInt($int) |
||
833 | |||
834 | /** |
||
835 | * isset int |
||
836 | * |
||
837 | * @param scalar $index |
||
838 | * @return boolean |
||
839 | */ |
||
840 | public function issetInt($index) |
||
844 | |||
845 | /** |
||
846 | * unset int |
||
847 | * |
||
848 | * @param scalar $index |
||
849 | * @return void |
||
850 | */ |
||
851 | public function unsetInt($index) |
||
855 | |||
856 | /** |
||
857 | * Gets as int |
||
858 | * |
||
859 | * @return integer[] |
||
860 | */ |
||
861 | public function getInt() |
||
865 | |||
866 | /** |
||
867 | * Sets a new int |
||
868 | * |
||
869 | * @param integer $int |
||
870 | * @return self |
||
871 | */ |
||
872 | public function setInt(array $int) |
||
877 | |||
878 | /** |
||
879 | * Adds as string |
||
880 | * |
||
881 | * @return self |
||
882 | * @param string $string |
||
883 | */ |
||
884 | public function addToString($string) |
||
889 | |||
890 | /** |
||
891 | * isset string |
||
892 | * |
||
893 | * @param scalar $index |
||
894 | * @return boolean |
||
895 | */ |
||
896 | public function issetString($index) |
||
900 | |||
901 | /** |
||
902 | * unset string |
||
903 | * |
||
904 | * @param scalar $index |
||
905 | * @return void |
||
906 | */ |
||
907 | public function unsetString($index) |
||
911 | |||
912 | /** |
||
913 | * Gets as string |
||
914 | * |
||
915 | * @return string[] |
||
916 | */ |
||
917 | public function getString() |
||
921 | |||
922 | /** |
||
923 | * Sets a new string |
||
924 | * |
||
925 | * @param string $string |
||
926 | * @return self |
||
927 | */ |
||
928 | public function setString(array $string) |
||
933 | |||
934 | /** |
||
935 | * Adds as timeOfDay |
||
936 | * |
||
937 | * @return self |
||
938 | * @param \DateTime $timeOfDay |
||
939 | */ |
||
940 | public function addToTimeOfDay(\DateTime $timeOfDay) |
||
945 | |||
946 | /** |
||
947 | * isset timeOfDay |
||
948 | * |
||
949 | * @param scalar $index |
||
950 | * @return boolean |
||
951 | */ |
||
952 | public function issetTimeOfDay($index) |
||
956 | |||
957 | /** |
||
958 | * unset timeOfDay |
||
959 | * |
||
960 | * @param scalar $index |
||
961 | * @return void |
||
962 | */ |
||
963 | public function unsetTimeOfDay($index) |
||
967 | |||
968 | /** |
||
969 | * Gets as timeOfDay |
||
970 | * |
||
971 | * @return \DateTime[] |
||
972 | */ |
||
973 | public function getTimeOfDay() |
||
977 | |||
978 | /** |
||
979 | * Sets a new timeOfDay |
||
980 | * |
||
981 | * @param \DateTime $timeOfDay |
||
982 | * @return self |
||
983 | */ |
||
984 | public function setTimeOfDay(array $timeOfDay) |
||
989 | |||
990 | /** |
||
991 | * Adds as annotationPath |
||
992 | * |
||
993 | * @return self |
||
994 | * @param string $annotationPath |
||
995 | */ |
||
996 | public function addToAnnotationPath($annotationPath) |
||
1001 | |||
1002 | /** |
||
1003 | * isset annotationPath |
||
1004 | * |
||
1005 | * @param scalar $index |
||
1006 | * @return boolean |
||
1007 | */ |
||
1008 | public function issetAnnotationPath($index) |
||
1012 | |||
1013 | /** |
||
1014 | * unset annotationPath |
||
1015 | * |
||
1016 | * @param scalar $index |
||
1017 | * @return void |
||
1018 | */ |
||
1019 | public function unsetAnnotationPath($index) |
||
1023 | |||
1024 | /** |
||
1025 | * Gets as annotationPath |
||
1026 | * |
||
1027 | * @return string[] |
||
1028 | */ |
||
1029 | public function getAnnotationPath() |
||
1033 | |||
1034 | /** |
||
1035 | * Sets a new annotationPath |
||
1036 | * |
||
1037 | * @param string $annotationPath |
||
1038 | * @return self |
||
1039 | */ |
||
1040 | public function setAnnotationPath(array $annotationPath) |
||
1045 | |||
1046 | /** |
||
1047 | * Adds as apply |
||
1048 | * |
||
1049 | * @return self |
||
1050 | * @param \MetadataV4\edm\TApplyExpressionType $apply |
||
1051 | */ |
||
1052 | public function addToApply(\MetadataV4\edm\TApplyExpressionType $apply) |
||
1057 | |||
1058 | /** |
||
1059 | * isset apply |
||
1060 | * |
||
1061 | * @param scalar $index |
||
1062 | * @return boolean |
||
1063 | */ |
||
1064 | public function issetApply($index) |
||
1068 | |||
1069 | /** |
||
1070 | * unset apply |
||
1071 | * |
||
1072 | * @param scalar $index |
||
1073 | * @return void |
||
1074 | */ |
||
1075 | public function unsetApply($index) |
||
1079 | |||
1080 | /** |
||
1081 | * Gets as apply |
||
1082 | * |
||
1083 | * @return \MetadataV4\edm\TApplyExpressionType[] |
||
1084 | */ |
||
1085 | public function getApply() |
||
1089 | |||
1090 | /** |
||
1091 | * Sets a new apply |
||
1092 | * |
||
1093 | * @param \MetadataV4\edm\TApplyExpressionType[] $apply |
||
1094 | * @return self |
||
1095 | */ |
||
1096 | public function setApply(array $apply) |
||
1101 | |||
1102 | /** |
||
1103 | * Adds as cast |
||
1104 | * |
||
1105 | * @return self |
||
1106 | * @param \MetadataV4\edm\TCastOrIsOfExpressionType $cast |
||
1107 | */ |
||
1108 | public function addToCast(\MetadataV4\edm\TCastOrIsOfExpressionType $cast) |
||
1113 | |||
1114 | /** |
||
1115 | * isset cast |
||
1116 | * |
||
1117 | * @param scalar $index |
||
1118 | * @return boolean |
||
1119 | */ |
||
1120 | public function issetCast($index) |
||
1124 | |||
1125 | /** |
||
1126 | * unset cast |
||
1127 | * |
||
1128 | * @param scalar $index |
||
1129 | * @return void |
||
1130 | */ |
||
1131 | public function unsetCast($index) |
||
1135 | |||
1136 | /** |
||
1137 | * Gets as cast |
||
1138 | * |
||
1139 | * @return \MetadataV4\edm\TCastOrIsOfExpressionType[] |
||
1140 | */ |
||
1141 | public function getCast() |
||
1145 | |||
1146 | /** |
||
1147 | * Sets a new cast |
||
1148 | * |
||
1149 | * @param \MetadataV4\edm\TCastOrIsOfExpressionType[] $cast |
||
1150 | * @return self |
||
1151 | */ |
||
1152 | public function setCast(array $cast) |
||
1157 | |||
1158 | /** |
||
1159 | * Adds as collection |
||
1160 | * |
||
1161 | * @return self |
||
1162 | * @param \MetadataV4\edm\TCollectionExpressionType $collection |
||
1163 | */ |
||
1164 | public function addToCollection(\MetadataV4\edm\TCollectionExpressionType $collection) |
||
1169 | |||
1170 | /** |
||
1171 | * isset collection |
||
1172 | * |
||
1173 | * @param scalar $index |
||
1174 | * @return boolean |
||
1175 | */ |
||
1176 | public function issetCollection($index) |
||
1180 | |||
1181 | /** |
||
1182 | * unset collection |
||
1183 | * |
||
1184 | * @param scalar $index |
||
1185 | * @return void |
||
1186 | */ |
||
1187 | public function unsetCollection($index) |
||
1191 | |||
1192 | /** |
||
1193 | * Gets as collection |
||
1194 | * |
||
1195 | * @return \MetadataV4\edm\TCollectionExpressionType[] |
||
1196 | */ |
||
1197 | public function getCollection() |
||
1201 | |||
1202 | /** |
||
1203 | * Sets a new collection |
||
1204 | * |
||
1205 | * @param \MetadataV4\edm\TCollectionExpressionType[] $collection |
||
1206 | * @return self |
||
1207 | */ |
||
1208 | public function setCollection(array $collection) |
||
1213 | |||
1214 | /** |
||
1215 | * Adds as if |
||
1216 | * |
||
1217 | * @return self |
||
1218 | * @param \MetadataV4\edm\TIfExpressionType $if |
||
1219 | */ |
||
1220 | public function addToIf(\MetadataV4\edm\TIfExpressionType $if) |
||
1225 | |||
1226 | /** |
||
1227 | * isset if |
||
1228 | * |
||
1229 | * @param scalar $index |
||
1230 | * @return boolean |
||
1231 | */ |
||
1232 | public function issetIf($index) |
||
1236 | |||
1237 | /** |
||
1238 | * unset if |
||
1239 | * |
||
1240 | * @param scalar $index |
||
1241 | * @return void |
||
1242 | */ |
||
1243 | public function unsetIf($index) |
||
1247 | |||
1248 | /** |
||
1249 | * Gets as if |
||
1250 | * |
||
1251 | * @return \MetadataV4\edm\TIfExpressionType[] |
||
1252 | */ |
||
1253 | public function getIf() |
||
1257 | |||
1258 | /** |
||
1259 | * Sets a new if |
||
1260 | * |
||
1261 | * @param \MetadataV4\edm\TIfExpressionType[] $if |
||
1262 | * @return self |
||
1263 | */ |
||
1264 | public function setIf(array $if) |
||
1269 | |||
1270 | /** |
||
1271 | * Adds as eq |
||
1272 | * |
||
1273 | * @return self |
||
1274 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $eq |
||
1275 | */ |
||
1276 | public function addToEq(\MetadataV4\edm\TTwoChildrenExpressionType $eq) |
||
1281 | |||
1282 | /** |
||
1283 | * isset eq |
||
1284 | * |
||
1285 | * @param scalar $index |
||
1286 | * @return boolean |
||
1287 | */ |
||
1288 | public function issetEq($index) |
||
1292 | |||
1293 | /** |
||
1294 | * unset eq |
||
1295 | * |
||
1296 | * @param scalar $index |
||
1297 | * @return void |
||
1298 | */ |
||
1299 | public function unsetEq($index) |
||
1303 | |||
1304 | /** |
||
1305 | * Gets as eq |
||
1306 | * |
||
1307 | * @return \MetadataV4\edm\TTwoChildrenExpressionType[] |
||
1308 | */ |
||
1309 | public function getEq() |
||
1313 | |||
1314 | /** |
||
1315 | * Sets a new eq |
||
1316 | * |
||
1317 | * @param \MetadataV4\edm\TTwoChildrenExpressionType[] $eq |
||
1318 | * @return self |
||
1319 | */ |
||
1320 | public function setEq(array $eq) |
||
1325 | |||
1326 | /** |
||
1327 | * Adds as ne |
||
1328 | * |
||
1329 | * @return self |
||
1330 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $ne |
||
1331 | */ |
||
1332 | public function addToNe(\MetadataV4\edm\TTwoChildrenExpressionType $ne) |
||
1337 | |||
1338 | /** |
||
1339 | * isset ne |
||
1340 | * |
||
1341 | * @param scalar $index |
||
1342 | * @return boolean |
||
1343 | */ |
||
1344 | public function issetNe($index) |
||
1348 | |||
1349 | /** |
||
1350 | * unset ne |
||
1351 | * |
||
1352 | * @param scalar $index |
||
1353 | * @return void |
||
1354 | */ |
||
1355 | public function unsetNe($index) |
||
1359 | |||
1360 | /** |
||
1361 | * Gets as ne |
||
1362 | * |
||
1363 | * @return \MetadataV4\edm\TTwoChildrenExpressionType[] |
||
1364 | */ |
||
1365 | public function getNe() |
||
1369 | |||
1370 | /** |
||
1371 | * Sets a new ne |
||
1372 | * |
||
1373 | * @param \MetadataV4\edm\TTwoChildrenExpressionType[] $ne |
||
1374 | * @return self |
||
1375 | */ |
||
1376 | public function setNe(array $ne) |
||
1381 | |||
1382 | /** |
||
1383 | * Adds as ge |
||
1384 | * |
||
1385 | * @return self |
||
1386 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $ge |
||
1387 | */ |
||
1388 | public function addToGe(\MetadataV4\edm\TTwoChildrenExpressionType $ge) |
||
1393 | |||
1394 | /** |
||
1395 | * isset ge |
||
1396 | * |
||
1397 | * @param scalar $index |
||
1398 | * @return boolean |
||
1399 | */ |
||
1400 | public function issetGe($index) |
||
1404 | |||
1405 | /** |
||
1406 | * unset ge |
||
1407 | * |
||
1408 | * @param scalar $index |
||
1409 | * @return void |
||
1410 | */ |
||
1411 | public function unsetGe($index) |
||
1415 | |||
1416 | /** |
||
1417 | * Gets as ge |
||
1418 | * |
||
1419 | * @return \MetadataV4\edm\TTwoChildrenExpressionType[] |
||
1420 | */ |
||
1421 | public function getGe() |
||
1425 | |||
1426 | /** |
||
1427 | * Sets a new ge |
||
1428 | * |
||
1429 | * @param \MetadataV4\edm\TTwoChildrenExpressionType[] $ge |
||
1430 | * @return self |
||
1431 | */ |
||
1432 | public function setGe(array $ge) |
||
1437 | |||
1438 | /** |
||
1439 | * Adds as gt |
||
1440 | * |
||
1441 | * @return self |
||
1442 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $gt |
||
1443 | */ |
||
1444 | public function addToGt(\MetadataV4\edm\TTwoChildrenExpressionType $gt) |
||
1449 | |||
1450 | /** |
||
1451 | * isset gt |
||
1452 | * |
||
1453 | * @param scalar $index |
||
1454 | * @return boolean |
||
1455 | */ |
||
1456 | public function issetGt($index) |
||
1460 | |||
1461 | /** |
||
1462 | * unset gt |
||
1463 | * |
||
1464 | * @param scalar $index |
||
1465 | * @return void |
||
1466 | */ |
||
1467 | public function unsetGt($index) |
||
1471 | |||
1472 | /** |
||
1473 | * Gets as gt |
||
1474 | * |
||
1475 | * @return \MetadataV4\edm\TTwoChildrenExpressionType[] |
||
1476 | */ |
||
1477 | public function getGt() |
||
1481 | |||
1482 | /** |
||
1483 | * Sets a new gt |
||
1484 | * |
||
1485 | * @param \MetadataV4\edm\TTwoChildrenExpressionType[] $gt |
||
1486 | * @return self |
||
1487 | */ |
||
1488 | public function setGt(array $gt) |
||
1493 | |||
1494 | /** |
||
1495 | * Adds as le |
||
1496 | * |
||
1497 | * @return self |
||
1498 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $le |
||
1499 | */ |
||
1500 | public function addToLe(\MetadataV4\edm\TTwoChildrenExpressionType $le) |
||
1505 | |||
1506 | /** |
||
1507 | * isset le |
||
1508 | * |
||
1509 | * @param scalar $index |
||
1510 | * @return boolean |
||
1511 | */ |
||
1512 | public function issetLe($index) |
||
1516 | |||
1517 | /** |
||
1518 | * unset le |
||
1519 | * |
||
1520 | * @param scalar $index |
||
1521 | * @return void |
||
1522 | */ |
||
1523 | public function unsetLe($index) |
||
1527 | |||
1528 | /** |
||
1529 | * Gets as le |
||
1530 | * |
||
1531 | * @return \MetadataV4\edm\TTwoChildrenExpressionType[] |
||
1532 | */ |
||
1533 | public function getLe() |
||
1537 | |||
1538 | /** |
||
1539 | * Sets a new le |
||
1540 | * |
||
1541 | * @param \MetadataV4\edm\TTwoChildrenExpressionType[] $le |
||
1542 | * @return self |
||
1543 | */ |
||
1544 | public function setLe(array $le) |
||
1549 | |||
1550 | /** |
||
1551 | * Adds as lt |
||
1552 | * |
||
1553 | * @return self |
||
1554 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $lt |
||
1555 | */ |
||
1556 | public function addToLt(\MetadataV4\edm\TTwoChildrenExpressionType $lt) |
||
1561 | |||
1562 | /** |
||
1563 | * isset lt |
||
1564 | * |
||
1565 | * @param scalar $index |
||
1566 | * @return boolean |
||
1567 | */ |
||
1568 | public function issetLt($index) |
||
1572 | |||
1573 | /** |
||
1574 | * unset lt |
||
1575 | * |
||
1576 | * @param scalar $index |
||
1577 | * @return void |
||
1578 | */ |
||
1579 | public function unsetLt($index) |
||
1583 | |||
1584 | /** |
||
1585 | * Gets as lt |
||
1586 | * |
||
1587 | * @return \MetadataV4\edm\TTwoChildrenExpressionType[] |
||
1588 | */ |
||
1589 | public function getLt() |
||
1593 | |||
1594 | /** |
||
1595 | * Sets a new lt |
||
1596 | * |
||
1597 | * @param \MetadataV4\edm\TTwoChildrenExpressionType[] $lt |
||
1598 | * @return self |
||
1599 | */ |
||
1600 | public function setLt(array $lt) |
||
1605 | |||
1606 | /** |
||
1607 | * Adds as and |
||
1608 | * |
||
1609 | * @return self |
||
1610 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $and |
||
1611 | */ |
||
1612 | public function addToAnd(\MetadataV4\edm\TTwoChildrenExpressionType $and) |
||
1617 | |||
1618 | /** |
||
1619 | * isset and |
||
1620 | * |
||
1621 | * @param scalar $index |
||
1622 | * @return boolean |
||
1623 | */ |
||
1624 | public function issetAnd($index) |
||
1628 | |||
1629 | /** |
||
1630 | * unset and |
||
1631 | * |
||
1632 | * @param scalar $index |
||
1633 | * @return void |
||
1634 | */ |
||
1635 | public function unsetAnd($index) |
||
1639 | |||
1640 | /** |
||
1641 | * Gets as and |
||
1642 | * |
||
1643 | * @return \MetadataV4\edm\TTwoChildrenExpressionType[] |
||
1644 | */ |
||
1645 | public function getAnd() |
||
1649 | |||
1650 | /** |
||
1651 | * Sets a new and |
||
1652 | * |
||
1653 | * @param \MetadataV4\edm\TTwoChildrenExpressionType[] $and |
||
1654 | * @return self |
||
1655 | */ |
||
1656 | public function setAnd(array $and) |
||
1661 | |||
1662 | /** |
||
1663 | * Adds as or |
||
1664 | * |
||
1665 | * @return self |
||
1666 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $or |
||
1667 | */ |
||
1668 | public function addToOr(\MetadataV4\edm\TTwoChildrenExpressionType $or) |
||
1673 | |||
1674 | /** |
||
1675 | * isset or |
||
1676 | * |
||
1677 | * @param scalar $index |
||
1678 | * @return boolean |
||
1679 | */ |
||
1680 | public function issetOr($index) |
||
1684 | |||
1685 | /** |
||
1686 | * unset or |
||
1687 | * |
||
1688 | * @param scalar $index |
||
1689 | * @return void |
||
1690 | */ |
||
1691 | public function unsetOr($index) |
||
1695 | |||
1696 | /** |
||
1697 | * Gets as or |
||
1698 | * |
||
1699 | * @return \MetadataV4\edm\TTwoChildrenExpressionType[] |
||
1700 | */ |
||
1701 | public function getOr() |
||
1705 | |||
1706 | /** |
||
1707 | * Sets a new or |
||
1708 | * |
||
1709 | * @param \MetadataV4\edm\TTwoChildrenExpressionType[] $or |
||
1710 | * @return self |
||
1711 | */ |
||
1712 | public function setOr(array $or) |
||
1717 | |||
1718 | /** |
||
1719 | * Adds as not |
||
1720 | * |
||
1721 | * @return self |
||
1722 | * @param \MetadataV4\edm\TOneChildExpressionType $not |
||
1723 | */ |
||
1724 | public function addToNot(\MetadataV4\edm\TOneChildExpressionType $not) |
||
1729 | |||
1730 | /** |
||
1731 | * isset not |
||
1732 | * |
||
1733 | * @param scalar $index |
||
1734 | * @return boolean |
||
1735 | */ |
||
1736 | public function issetNot($index) |
||
1740 | |||
1741 | /** |
||
1742 | * unset not |
||
1743 | * |
||
1744 | * @param scalar $index |
||
1745 | * @return void |
||
1746 | */ |
||
1747 | public function unsetNot($index) |
||
1751 | |||
1752 | /** |
||
1753 | * Gets as not |
||
1754 | * |
||
1755 | * @return \MetadataV4\edm\TOneChildExpressionType[] |
||
1756 | */ |
||
1757 | public function getNot() |
||
1761 | |||
1762 | /** |
||
1763 | * Sets a new not |
||
1764 | * |
||
1765 | * @param \MetadataV4\edm\TOneChildExpressionType[] $not |
||
1766 | * @return self |
||
1767 | */ |
||
1768 | public function setNot(array $not) |
||
1773 | |||
1774 | /** |
||
1775 | * Adds as isOf |
||
1776 | * |
||
1777 | * @return self |
||
1778 | * @param \MetadataV4\edm\TCastOrIsOfExpressionType $isOf |
||
1779 | */ |
||
1780 | public function addToIsOf(\MetadataV4\edm\TCastOrIsOfExpressionType $isOf) |
||
1785 | |||
1786 | /** |
||
1787 | * isset isOf |
||
1788 | * |
||
1789 | * @param scalar $index |
||
1790 | * @return boolean |
||
1791 | */ |
||
1792 | public function issetIsOf($index) |
||
1796 | |||
1797 | /** |
||
1798 | * unset isOf |
||
1799 | * |
||
1800 | * @param scalar $index |
||
1801 | * @return void |
||
1802 | */ |
||
1803 | public function unsetIsOf($index) |
||
1807 | |||
1808 | /** |
||
1809 | * Gets as isOf |
||
1810 | * |
||
1811 | * @return \MetadataV4\edm\TCastOrIsOfExpressionType[] |
||
1812 | */ |
||
1813 | public function getIsOf() |
||
1817 | |||
1818 | /** |
||
1819 | * Sets a new isOf |
||
1820 | * |
||
1821 | * @param \MetadataV4\edm\TCastOrIsOfExpressionType[] $isOf |
||
1822 | * @return self |
||
1823 | */ |
||
1824 | public function setIsOf(array $isOf) |
||
1829 | |||
1830 | /** |
||
1831 | * Adds as labeledElement |
||
1832 | * |
||
1833 | * @return self |
||
1834 | * @param \MetadataV4\edm\TLabeledElementExpressionType $labeledElement |
||
1835 | */ |
||
1836 | public function addToLabeledElement(\MetadataV4\edm\TLabeledElementExpressionType $labeledElement) |
||
1841 | |||
1842 | /** |
||
1843 | * isset labeledElement |
||
1844 | * |
||
1845 | * @param scalar $index |
||
1846 | * @return boolean |
||
1847 | */ |
||
1848 | public function issetLabeledElement($index) |
||
1852 | |||
1853 | /** |
||
1854 | * unset labeledElement |
||
1855 | * |
||
1856 | * @param scalar $index |
||
1857 | * @return void |
||
1858 | */ |
||
1859 | public function unsetLabeledElement($index) |
||
1863 | |||
1864 | /** |
||
1865 | * Gets as labeledElement |
||
1866 | * |
||
1867 | * @return \MetadataV4\edm\TLabeledElementExpressionType[] |
||
1868 | */ |
||
1869 | public function getLabeledElement() |
||
1873 | |||
1874 | /** |
||
1875 | * Sets a new labeledElement |
||
1876 | * |
||
1877 | * @param \MetadataV4\edm\TLabeledElementExpressionType[] $labeledElement |
||
1878 | * @return self |
||
1879 | */ |
||
1880 | public function setLabeledElement(array $labeledElement) |
||
1885 | |||
1886 | /** |
||
1887 | * Adds as labeledElementReference |
||
1888 | * |
||
1889 | * @return self |
||
1890 | * @param string $labeledElementReference |
||
1891 | */ |
||
1892 | public function addToLabeledElementReference($labeledElementReference) |
||
1897 | |||
1898 | /** |
||
1899 | * isset labeledElementReference |
||
1900 | * |
||
1901 | * @param scalar $index |
||
1902 | * @return boolean |
||
1903 | */ |
||
1904 | public function issetLabeledElementReference($index) |
||
1908 | |||
1909 | /** |
||
1910 | * unset labeledElementReference |
||
1911 | * |
||
1912 | * @param scalar $index |
||
1913 | * @return void |
||
1914 | */ |
||
1915 | public function unsetLabeledElementReference($index) |
||
1919 | |||
1920 | /** |
||
1921 | * Gets as labeledElementReference |
||
1922 | * |
||
1923 | * @return string[] |
||
1924 | */ |
||
1925 | public function getLabeledElementReference() |
||
1929 | |||
1930 | /** |
||
1931 | * Sets a new labeledElementReference |
||
1932 | * |
||
1933 | * @param string $labeledElementReference |
||
1934 | * @return self |
||
1935 | */ |
||
1936 | public function setLabeledElementReference(array $labeledElementReference) |
||
1941 | |||
1942 | /** |
||
1943 | * Adds as annotation |
||
1944 | * |
||
1945 | * @return self |
||
1946 | * @param \MetadataV4\edm\Annotation $annotation |
||
1947 | */ |
||
1948 | public function addToNull(\MetadataV4\edm\Annotation $annotation) |
||
1953 | |||
1954 | /** |
||
1955 | * isset null |
||
1956 | * |
||
1957 | * @param scalar $index |
||
1958 | * @return boolean |
||
1959 | */ |
||
1960 | public function issetNull($index) |
||
1964 | |||
1965 | /** |
||
1966 | * unset null |
||
1967 | * |
||
1968 | * @param scalar $index |
||
1969 | * @return void |
||
1970 | */ |
||
1971 | public function unsetNull($index) |
||
1975 | |||
1976 | /** |
||
1977 | * Gets as null |
||
1978 | * |
||
1979 | * @return \MetadataV4\edm\Annotation[] |
||
1980 | */ |
||
1981 | public function getNull() |
||
1985 | |||
1986 | /** |
||
1987 | * Sets a new null |
||
1988 | * |
||
1989 | * @param \MetadataV4\edm\Annotation[] $null |
||
1990 | * @return self |
||
1991 | */ |
||
1992 | public function setNull(array $null) |
||
1997 | |||
1998 | /** |
||
1999 | * Adds as navigationPropertyPath |
||
2000 | * |
||
2001 | * @return self |
||
2002 | * @param string $navigationPropertyPath |
||
2003 | */ |
||
2004 | public function addToNavigationPropertyPath($navigationPropertyPath) |
||
2009 | |||
2010 | /** |
||
2011 | * isset navigationPropertyPath |
||
2012 | * |
||
2013 | * @param scalar $index |
||
2014 | * @return boolean |
||
2015 | */ |
||
2016 | public function issetNavigationPropertyPath($index) |
||
2020 | |||
2021 | /** |
||
2022 | * unset navigationPropertyPath |
||
2023 | * |
||
2024 | * @param scalar $index |
||
2025 | * @return void |
||
2026 | */ |
||
2027 | public function unsetNavigationPropertyPath($index) |
||
2031 | |||
2032 | /** |
||
2033 | * Gets as navigationPropertyPath |
||
2034 | * |
||
2035 | * @return string[] |
||
2036 | */ |
||
2037 | public function getNavigationPropertyPath() |
||
2041 | |||
2042 | /** |
||
2043 | * Sets a new navigationPropertyPath |
||
2044 | * |
||
2045 | * @param string $navigationPropertyPath |
||
2046 | * @return self |
||
2047 | */ |
||
2048 | public function setNavigationPropertyPath(array $navigationPropertyPath) |
||
2053 | |||
2054 | /** |
||
2055 | * Adds as path |
||
2056 | * |
||
2057 | * @return self |
||
2058 | * @param string $path |
||
2059 | */ |
||
2060 | public function addToPath($path) |
||
2065 | |||
2066 | /** |
||
2067 | * isset path |
||
2068 | * |
||
2069 | * @param scalar $index |
||
2070 | * @return boolean |
||
2071 | */ |
||
2072 | public function issetPath($index) |
||
2076 | |||
2077 | /** |
||
2078 | * unset path |
||
2079 | * |
||
2080 | * @param scalar $index |
||
2081 | * @return void |
||
2082 | */ |
||
2083 | public function unsetPath($index) |
||
2087 | |||
2088 | /** |
||
2089 | * Gets as path |
||
2090 | * |
||
2091 | * @return string[] |
||
2092 | */ |
||
2093 | public function getPath() |
||
2097 | |||
2098 | /** |
||
2099 | * Sets a new path |
||
2100 | * |
||
2101 | * @param string $path |
||
2102 | * @return self |
||
2103 | */ |
||
2104 | public function setPath(array $path) |
||
2109 | |||
2110 | /** |
||
2111 | * Adds as propertyPath |
||
2112 | * |
||
2113 | * @return self |
||
2114 | * @param string $propertyPath |
||
2115 | */ |
||
2116 | public function addToPropertyPath($propertyPath) |
||
2121 | |||
2122 | /** |
||
2123 | * isset propertyPath |
||
2124 | * |
||
2125 | * @param scalar $index |
||
2126 | * @return boolean |
||
2127 | */ |
||
2128 | public function issetPropertyPath($index) |
||
2132 | |||
2133 | /** |
||
2134 | * unset propertyPath |
||
2135 | * |
||
2136 | * @param scalar $index |
||
2137 | * @return void |
||
2138 | */ |
||
2139 | public function unsetPropertyPath($index) |
||
2143 | |||
2144 | /** |
||
2145 | * Gets as propertyPath |
||
2146 | * |
||
2147 | * @return string[] |
||
2148 | */ |
||
2149 | public function getPropertyPath() |
||
2153 | |||
2154 | /** |
||
2155 | * Sets a new propertyPath |
||
2156 | * |
||
2157 | * @param string $propertyPath |
||
2158 | * @return self |
||
2159 | */ |
||
2160 | public function setPropertyPath(array $propertyPath) |
||
2165 | |||
2166 | /** |
||
2167 | * Adds as record |
||
2168 | * |
||
2169 | * @return self |
||
2170 | * @param \MetadataV4\edm\TRecordExpressionType $record |
||
2171 | */ |
||
2172 | public function addToRecord(\MetadataV4\edm\TRecordExpressionType $record) |
||
2177 | |||
2178 | /** |
||
2179 | * isset record |
||
2180 | * |
||
2181 | * @param scalar $index |
||
2182 | * @return boolean |
||
2183 | */ |
||
2184 | public function issetRecord($index) |
||
2188 | |||
2189 | /** |
||
2190 | * unset record |
||
2191 | * |
||
2192 | * @param scalar $index |
||
2193 | * @return void |
||
2194 | */ |
||
2195 | public function unsetRecord($index) |
||
2199 | |||
2200 | /** |
||
2201 | * Gets as record |
||
2202 | * |
||
2203 | * @return \MetadataV4\edm\TRecordExpressionType[] |
||
2204 | */ |
||
2205 | public function getRecord() |
||
2209 | |||
2210 | /** |
||
2211 | * Sets a new record |
||
2212 | * |
||
2213 | * @param \MetadataV4\edm\TRecordExpressionType[] $record |
||
2214 | * @return self |
||
2215 | */ |
||
2216 | public function setRecord(array $record) |
||
2221 | |||
2222 | /** |
||
2223 | * Adds as urlRef |
||
2224 | * |
||
2225 | * @return self |
||
2226 | * @param \MetadataV4\edm\TOneChildExpressionType $urlRef |
||
2227 | */ |
||
2228 | public function addToUrlRef(\MetadataV4\edm\TOneChildExpressionType $urlRef) |
||
2233 | |||
2234 | /** |
||
2235 | * isset urlRef |
||
2236 | * |
||
2237 | * @param scalar $index |
||
2238 | * @return boolean |
||
2239 | */ |
||
2240 | public function issetUrlRef($index) |
||
2244 | |||
2245 | /** |
||
2246 | * unset urlRef |
||
2247 | * |
||
2248 | * @param scalar $index |
||
2249 | * @return void |
||
2250 | */ |
||
2251 | public function unsetUrlRef($index) |
||
2255 | |||
2256 | /** |
||
2257 | * Gets as urlRef |
||
2258 | * |
||
2259 | * @return \MetadataV4\edm\TOneChildExpressionType[] |
||
2260 | */ |
||
2261 | public function getUrlRef() |
||
2265 | |||
2266 | /** |
||
2267 | * Sets a new urlRef |
||
2268 | * |
||
2269 | * @param \MetadataV4\edm\TOneChildExpressionType[] $urlRef |
||
2270 | * @return self |
||
2271 | */ |
||
2272 | public function setUrlRef(array $urlRef) |
||
2277 | } |
||
2278 |
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.