Complex classes like Annotation 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 Annotation, and based on these observations, apply Extract Interface, too.
1 | <?php |
||
8 | class Annotation |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @property string $term |
||
13 | */ |
||
14 | private $term = null; |
||
15 | |||
16 | /** |
||
17 | * @property string $qualifier |
||
18 | */ |
||
19 | private $qualifier = null; |
||
20 | |||
21 | /** |
||
22 | * @property string $binary |
||
23 | */ |
||
24 | private $binary = null; |
||
25 | |||
26 | /** |
||
27 | * @property boolean $bool |
||
28 | */ |
||
29 | private $bool = null; |
||
30 | |||
31 | /** |
||
32 | * @property \DateTime $date |
||
33 | */ |
||
34 | private $date = null; |
||
35 | |||
36 | /** |
||
37 | * @property \DateTime $dateTimeOffset |
||
38 | */ |
||
39 | private $dateTimeOffset = null; |
||
40 | |||
41 | /** |
||
42 | * @property float $decimal |
||
43 | */ |
||
44 | private $decimal = null; |
||
45 | |||
46 | /** |
||
47 | * @property \DateInterval $duration |
||
48 | */ |
||
49 | private $duration = null; |
||
50 | |||
51 | /** |
||
52 | * @property string[] $enumMember |
||
53 | */ |
||
54 | private $enumMember = null; |
||
55 | |||
56 | /** |
||
57 | * @property float $float |
||
58 | */ |
||
59 | private $float = null; |
||
60 | |||
61 | /** |
||
62 | * @property string $guid |
||
63 | */ |
||
64 | private $guid = null; |
||
65 | |||
66 | /** |
||
67 | * @property integer $int |
||
68 | */ |
||
69 | private $int = null; |
||
70 | |||
71 | /** |
||
72 | * @property string $string |
||
73 | */ |
||
74 | private $string = null; |
||
75 | |||
76 | /** |
||
77 | * @property \DateTime $timeOfDay |
||
78 | */ |
||
79 | private $timeOfDay = null; |
||
80 | |||
81 | /** |
||
82 | * @property string $annotationPath |
||
83 | */ |
||
84 | private $annotationPath = null; |
||
85 | |||
86 | /** |
||
87 | * @property string $navigationPropertyPath |
||
88 | */ |
||
89 | private $navigationPropertyPath = null; |
||
90 | |||
91 | /** |
||
92 | * @property string $path |
||
93 | */ |
||
94 | private $path = null; |
||
95 | |||
96 | /** |
||
97 | * @property string $propertyPath |
||
98 | */ |
||
99 | private $propertyPath = null; |
||
100 | |||
101 | /** |
||
102 | * @property \MetadataV4\edm\TOneChildExpressionType $urlRef |
||
103 | */ |
||
104 | private $urlRef = null; |
||
105 | |||
106 | /** |
||
107 | * @property \MetadataV4\edm\Annotation[] $annotation |
||
108 | */ |
||
109 | private $annotation = array( |
||
110 | |||
111 | ); |
||
112 | |||
113 | /** |
||
114 | * @property \MetadataV4\edm\TApplyExpressionType $apply |
||
115 | */ |
||
116 | private $apply = null; |
||
117 | |||
118 | /** |
||
119 | * @property \MetadataV4\edm\TCastOrIsOfExpressionType $cast |
||
120 | */ |
||
121 | private $cast = null; |
||
122 | |||
123 | /** |
||
124 | * @property \MetadataV4\edm\TCollectionExpressionType $collection |
||
125 | */ |
||
126 | private $collection = null; |
||
127 | |||
128 | /** |
||
129 | * @property \MetadataV4\edm\TIfExpressionType $if |
||
130 | */ |
||
131 | private $if = null; |
||
132 | |||
133 | /** |
||
134 | * @property \MetadataV4\edm\TTwoChildrenExpressionType $eq |
||
135 | */ |
||
136 | private $eq = null; |
||
137 | |||
138 | /** |
||
139 | * @property \MetadataV4\edm\TTwoChildrenExpressionType $ne |
||
140 | */ |
||
141 | private $ne = null; |
||
142 | |||
143 | /** |
||
144 | * @property \MetadataV4\edm\TTwoChildrenExpressionType $ge |
||
145 | */ |
||
146 | private $ge = null; |
||
147 | |||
148 | /** |
||
149 | * @property \MetadataV4\edm\TTwoChildrenExpressionType $gt |
||
150 | */ |
||
151 | private $gt = null; |
||
152 | |||
153 | /** |
||
154 | * @property \MetadataV4\edm\TTwoChildrenExpressionType $le |
||
155 | */ |
||
156 | private $le = null; |
||
157 | |||
158 | /** |
||
159 | * @property \MetadataV4\edm\TTwoChildrenExpressionType $lt |
||
160 | */ |
||
161 | private $lt = null; |
||
162 | |||
163 | /** |
||
164 | * @property \MetadataV4\edm\TTwoChildrenExpressionType $and |
||
165 | */ |
||
166 | private $and = null; |
||
167 | |||
168 | /** |
||
169 | * @property \MetadataV4\edm\TTwoChildrenExpressionType $or |
||
170 | */ |
||
171 | private $or = null; |
||
172 | |||
173 | /** |
||
174 | * @property \MetadataV4\edm\TOneChildExpressionType $not |
||
175 | */ |
||
176 | private $not = null; |
||
177 | |||
178 | /** |
||
179 | * @property \MetadataV4\edm\TCastOrIsOfExpressionType $isOf |
||
180 | */ |
||
181 | private $isOf = null; |
||
182 | |||
183 | /** |
||
184 | * @property \MetadataV4\edm\TLabeledElementExpressionType $labeledElement |
||
185 | */ |
||
186 | private $labeledElement = null; |
||
187 | |||
188 | /** |
||
189 | * @property string $labeledElementReference |
||
190 | */ |
||
191 | private $labeledElementReference = null; |
||
192 | |||
193 | /** |
||
194 | * @property \MetadataV4\edm\Annotation[] $null |
||
195 | */ |
||
196 | private $null = null; |
||
197 | |||
198 | /** |
||
199 | * @property \MetadataV4\edm\TRecordExpressionType $record |
||
200 | */ |
||
201 | private $record = null; |
||
202 | |||
203 | /** |
||
204 | * Gets as term |
||
205 | * |
||
206 | * @return string |
||
207 | */ |
||
208 | public function getTerm() |
||
212 | |||
213 | /** |
||
214 | * Sets a new term |
||
215 | * |
||
216 | * @param string $term |
||
217 | * @return self |
||
218 | */ |
||
219 | public function setTerm($term) |
||
224 | |||
225 | /** |
||
226 | * Gets as qualifier |
||
227 | * |
||
228 | * @return string |
||
229 | */ |
||
230 | public function getQualifier() |
||
234 | |||
235 | /** |
||
236 | * Sets a new qualifier |
||
237 | * |
||
238 | * @param string $qualifier |
||
239 | * @return self |
||
240 | */ |
||
241 | public function setQualifier($qualifier) |
||
246 | |||
247 | /** |
||
248 | * Gets as binary |
||
249 | * |
||
250 | * @return string |
||
251 | */ |
||
252 | public function getBinary() |
||
256 | |||
257 | /** |
||
258 | * Sets a new binary |
||
259 | * |
||
260 | * @param string $binary |
||
261 | * @return self |
||
262 | */ |
||
263 | public function setBinary($binary) |
||
268 | |||
269 | /** |
||
270 | * Gets as bool |
||
271 | * |
||
272 | * @return boolean |
||
273 | */ |
||
274 | public function getBool() |
||
278 | |||
279 | /** |
||
280 | * Sets a new bool |
||
281 | * |
||
282 | * @param boolean $bool |
||
283 | * @return self |
||
284 | */ |
||
285 | public function setBool($bool) |
||
290 | |||
291 | /** |
||
292 | * Gets as date |
||
293 | * |
||
294 | * @return \DateTime |
||
295 | */ |
||
296 | public function getDate() |
||
300 | |||
301 | /** |
||
302 | * Sets a new date |
||
303 | * |
||
304 | * @param \DateTime $date |
||
305 | * @return self |
||
306 | */ |
||
307 | public function setDate(\DateTime $date) |
||
312 | |||
313 | /** |
||
314 | * Gets as dateTimeOffset |
||
315 | * |
||
316 | * @return \DateTime |
||
317 | */ |
||
318 | public function getDateTimeOffset() |
||
322 | |||
323 | /** |
||
324 | * Sets a new dateTimeOffset |
||
325 | * |
||
326 | * @param \DateTime $dateTimeOffset |
||
327 | * @return self |
||
328 | */ |
||
329 | public function setDateTimeOffset(\DateTime $dateTimeOffset) |
||
334 | |||
335 | /** |
||
336 | * Gets as decimal |
||
337 | * |
||
338 | * @return float |
||
339 | */ |
||
340 | public function getDecimal() |
||
344 | |||
345 | /** |
||
346 | * Sets a new decimal |
||
347 | * |
||
348 | * @param float $decimal |
||
349 | * @return self |
||
350 | */ |
||
351 | public function setDecimal($decimal) |
||
356 | |||
357 | /** |
||
358 | * Gets as duration |
||
359 | * |
||
360 | * @return \DateInterval |
||
361 | */ |
||
362 | public function getDuration() |
||
366 | |||
367 | /** |
||
368 | * Sets a new duration |
||
369 | * |
||
370 | * @param \DateInterval $duration |
||
371 | * @return self |
||
372 | */ |
||
373 | public function setDuration(\DateInterval $duration) |
||
378 | |||
379 | /** |
||
380 | * Adds as enumMember |
||
381 | * |
||
382 | * @return self |
||
383 | * @param string $enumMember |
||
384 | */ |
||
385 | public function addToEnumMember($enumMember) |
||
390 | |||
391 | /** |
||
392 | * isset enumMember |
||
393 | * |
||
394 | * @param scalar $index |
||
395 | * @return boolean |
||
396 | */ |
||
397 | public function issetEnumMember($index) |
||
401 | |||
402 | /** |
||
403 | * unset enumMember |
||
404 | * |
||
405 | * @param scalar $index |
||
406 | * @return void |
||
407 | */ |
||
408 | public function unsetEnumMember($index) |
||
412 | |||
413 | /** |
||
414 | * Gets as enumMember |
||
415 | * |
||
416 | * @return string[] |
||
417 | */ |
||
418 | public function getEnumMember() |
||
422 | |||
423 | /** |
||
424 | * Sets a new enumMember |
||
425 | * |
||
426 | * @param string $enumMember |
||
427 | * @return self |
||
428 | */ |
||
429 | public function setEnumMember(array $enumMember) |
||
434 | |||
435 | /** |
||
436 | * Gets as float |
||
437 | * |
||
438 | * @return float |
||
439 | */ |
||
440 | public function getFloat() |
||
444 | |||
445 | /** |
||
446 | * Sets a new float |
||
447 | * |
||
448 | * @param float $float |
||
449 | * @return self |
||
450 | */ |
||
451 | public function setFloat($float) |
||
456 | |||
457 | /** |
||
458 | * Gets as guid |
||
459 | * |
||
460 | * @return string |
||
461 | */ |
||
462 | public function getGuid() |
||
466 | |||
467 | /** |
||
468 | * Sets a new guid |
||
469 | * |
||
470 | * @param string $guid |
||
471 | * @return self |
||
472 | */ |
||
473 | public function setGuid($guid) |
||
478 | |||
479 | /** |
||
480 | * Gets as int |
||
481 | * |
||
482 | * @return integer |
||
483 | */ |
||
484 | public function getInt() |
||
488 | |||
489 | /** |
||
490 | * Sets a new int |
||
491 | * |
||
492 | * @param integer $int |
||
493 | * @return self |
||
494 | */ |
||
495 | public function setInt($int) |
||
500 | |||
501 | /** |
||
502 | * Gets as string |
||
503 | * |
||
504 | * @return string |
||
505 | */ |
||
506 | public function getString() |
||
510 | |||
511 | /** |
||
512 | * Sets a new string |
||
513 | * |
||
514 | * @param string $string |
||
515 | * @return self |
||
516 | */ |
||
517 | public function setString($string) |
||
522 | |||
523 | /** |
||
524 | * Gets as timeOfDay |
||
525 | * |
||
526 | * @return \DateTime |
||
527 | */ |
||
528 | public function getTimeOfDay() |
||
532 | |||
533 | /** |
||
534 | * Sets a new timeOfDay |
||
535 | * |
||
536 | * @param \DateTime $timeOfDay |
||
537 | * @return self |
||
538 | */ |
||
539 | public function setTimeOfDay(\DateTime $timeOfDay) |
||
544 | |||
545 | /** |
||
546 | * Gets as annotationPath |
||
547 | * |
||
548 | * @return string |
||
549 | */ |
||
550 | public function getAnnotationPath() |
||
554 | |||
555 | /** |
||
556 | * Sets a new annotationPath |
||
557 | * |
||
558 | * @param string $annotationPath |
||
559 | * @return self |
||
560 | */ |
||
561 | public function setAnnotationPath($annotationPath) |
||
566 | |||
567 | /** |
||
568 | * Gets as navigationPropertyPath |
||
569 | * |
||
570 | * @return string |
||
571 | */ |
||
572 | public function getNavigationPropertyPath() |
||
576 | |||
577 | /** |
||
578 | * Sets a new navigationPropertyPath |
||
579 | * |
||
580 | * @param string $navigationPropertyPath |
||
581 | * @return self |
||
582 | */ |
||
583 | public function setNavigationPropertyPath($navigationPropertyPath) |
||
588 | |||
589 | /** |
||
590 | * Gets as path |
||
591 | * |
||
592 | * @return string |
||
593 | */ |
||
594 | public function getPath() |
||
598 | |||
599 | /** |
||
600 | * Sets a new path |
||
601 | * |
||
602 | * @param string $path |
||
603 | * @return self |
||
604 | */ |
||
605 | public function setPath($path) |
||
610 | |||
611 | /** |
||
612 | * Gets as propertyPath |
||
613 | * |
||
614 | * @return string |
||
615 | */ |
||
616 | public function getPropertyPath() |
||
620 | |||
621 | /** |
||
622 | * Sets a new propertyPath |
||
623 | * |
||
624 | * @param string $propertyPath |
||
625 | * @return self |
||
626 | */ |
||
627 | public function setPropertyPath($propertyPath) |
||
632 | |||
633 | /** |
||
634 | * Gets as urlRef |
||
635 | * |
||
636 | * @return \MetadataV4\edm\TOneChildExpressionType |
||
637 | */ |
||
638 | public function getUrlRef() |
||
642 | |||
643 | /** |
||
644 | * Sets a new urlRef |
||
645 | * |
||
646 | * @param \MetadataV4\edm\TOneChildExpressionType $urlRef |
||
647 | * @return self |
||
648 | */ |
||
649 | public function setUrlRef(\MetadataV4\edm\TOneChildExpressionType $urlRef) |
||
654 | |||
655 | /** |
||
656 | * Adds as annotation |
||
657 | * |
||
658 | * @return self |
||
659 | * @param \MetadataV4\edm\Annotation $annotation |
||
660 | */ |
||
661 | public function addToAnnotation(\MetadataV4\edm\Annotation $annotation) |
||
666 | |||
667 | /** |
||
668 | * isset annotation |
||
669 | * |
||
670 | * @param scalar $index |
||
671 | * @return boolean |
||
672 | */ |
||
673 | public function issetAnnotation($index) |
||
677 | |||
678 | /** |
||
679 | * unset annotation |
||
680 | * |
||
681 | * @param scalar $index |
||
682 | * @return void |
||
683 | */ |
||
684 | public function unsetAnnotation($index) |
||
688 | |||
689 | /** |
||
690 | * Gets as annotation |
||
691 | * |
||
692 | * @return \MetadataV4\edm\Annotation[] |
||
693 | */ |
||
694 | public function getAnnotation() |
||
698 | |||
699 | /** |
||
700 | * Sets a new annotation |
||
701 | * |
||
702 | * @param \MetadataV4\edm\Annotation[] $annotation |
||
703 | * @return self |
||
704 | */ |
||
705 | public function setAnnotation(array $annotation) |
||
710 | |||
711 | /** |
||
712 | * Gets as apply |
||
713 | * |
||
714 | * @return \MetadataV4\edm\TApplyExpressionType |
||
715 | */ |
||
716 | public function getApply() |
||
720 | |||
721 | /** |
||
722 | * Sets a new apply |
||
723 | * |
||
724 | * @param \MetadataV4\edm\TApplyExpressionType $apply |
||
725 | * @return self |
||
726 | */ |
||
727 | public function setApply(\MetadataV4\edm\TApplyExpressionType $apply) |
||
732 | |||
733 | /** |
||
734 | * Gets as cast |
||
735 | * |
||
736 | * @return \MetadataV4\edm\TCastOrIsOfExpressionType |
||
737 | */ |
||
738 | public function getCast() |
||
742 | |||
743 | /** |
||
744 | * Sets a new cast |
||
745 | * |
||
746 | * @param \MetadataV4\edm\TCastOrIsOfExpressionType $cast |
||
747 | * @return self |
||
748 | */ |
||
749 | public function setCast(\MetadataV4\edm\TCastOrIsOfExpressionType $cast) |
||
754 | |||
755 | /** |
||
756 | * Gets as collection |
||
757 | * |
||
758 | * @return \MetadataV4\edm\TCollectionExpressionType |
||
759 | */ |
||
760 | public function getCollection() |
||
764 | |||
765 | /** |
||
766 | * Sets a new collection |
||
767 | * |
||
768 | * @param \MetadataV4\edm\TCollectionExpressionType $collection |
||
769 | * @return self |
||
770 | */ |
||
771 | public function setCollection(\MetadataV4\edm\TCollectionExpressionType $collection) |
||
776 | |||
777 | /** |
||
778 | * Gets as if |
||
779 | * |
||
780 | * @return \MetadataV4\edm\TIfExpressionType |
||
781 | */ |
||
782 | public function getIf() |
||
786 | |||
787 | /** |
||
788 | * Sets a new if |
||
789 | * |
||
790 | * @param \MetadataV4\edm\TIfExpressionType $if |
||
791 | * @return self |
||
792 | */ |
||
793 | public function setIf(\MetadataV4\edm\TIfExpressionType $if) |
||
798 | |||
799 | /** |
||
800 | * Gets as eq |
||
801 | * |
||
802 | * @return \MetadataV4\edm\TTwoChildrenExpressionType |
||
803 | */ |
||
804 | public function getEq() |
||
808 | |||
809 | /** |
||
810 | * Sets a new eq |
||
811 | * |
||
812 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $eq |
||
813 | * @return self |
||
814 | */ |
||
815 | public function setEq(\MetadataV4\edm\TTwoChildrenExpressionType $eq) |
||
820 | |||
821 | /** |
||
822 | * Gets as ne |
||
823 | * |
||
824 | * @return \MetadataV4\edm\TTwoChildrenExpressionType |
||
825 | */ |
||
826 | public function getNe() |
||
830 | |||
831 | /** |
||
832 | * Sets a new ne |
||
833 | * |
||
834 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $ne |
||
835 | * @return self |
||
836 | */ |
||
837 | public function setNe(\MetadataV4\edm\TTwoChildrenExpressionType $ne) |
||
842 | |||
843 | /** |
||
844 | * Gets as ge |
||
845 | * |
||
846 | * @return \MetadataV4\edm\TTwoChildrenExpressionType |
||
847 | */ |
||
848 | public function getGe() |
||
852 | |||
853 | /** |
||
854 | * Sets a new ge |
||
855 | * |
||
856 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $ge |
||
857 | * @return self |
||
858 | */ |
||
859 | public function setGe(\MetadataV4\edm\TTwoChildrenExpressionType $ge) |
||
864 | |||
865 | /** |
||
866 | * Gets as gt |
||
867 | * |
||
868 | * @return \MetadataV4\edm\TTwoChildrenExpressionType |
||
869 | */ |
||
870 | public function getGt() |
||
874 | |||
875 | /** |
||
876 | * Sets a new gt |
||
877 | * |
||
878 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $gt |
||
879 | * @return self |
||
880 | */ |
||
881 | public function setGt(\MetadataV4\edm\TTwoChildrenExpressionType $gt) |
||
886 | |||
887 | /** |
||
888 | * Gets as le |
||
889 | * |
||
890 | * @return \MetadataV4\edm\TTwoChildrenExpressionType |
||
891 | */ |
||
892 | public function getLe() |
||
896 | |||
897 | /** |
||
898 | * Sets a new le |
||
899 | * |
||
900 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $le |
||
901 | * @return self |
||
902 | */ |
||
903 | public function setLe(\MetadataV4\edm\TTwoChildrenExpressionType $le) |
||
908 | |||
909 | /** |
||
910 | * Gets as lt |
||
911 | * |
||
912 | * @return \MetadataV4\edm\TTwoChildrenExpressionType |
||
913 | */ |
||
914 | public function getLt() |
||
918 | |||
919 | /** |
||
920 | * Sets a new lt |
||
921 | * |
||
922 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $lt |
||
923 | * @return self |
||
924 | */ |
||
925 | public function setLt(\MetadataV4\edm\TTwoChildrenExpressionType $lt) |
||
930 | |||
931 | /** |
||
932 | * Gets as and |
||
933 | * |
||
934 | * @return \MetadataV4\edm\TTwoChildrenExpressionType |
||
935 | */ |
||
936 | public function getAnd() |
||
940 | |||
941 | /** |
||
942 | * Sets a new and |
||
943 | * |
||
944 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $and |
||
945 | * @return self |
||
946 | */ |
||
947 | public function setAnd(\MetadataV4\edm\TTwoChildrenExpressionType $and) |
||
952 | |||
953 | /** |
||
954 | * Gets as or |
||
955 | * |
||
956 | * @return \MetadataV4\edm\TTwoChildrenExpressionType |
||
957 | */ |
||
958 | public function getOr() |
||
962 | |||
963 | /** |
||
964 | * Sets a new or |
||
965 | * |
||
966 | * @param \MetadataV4\edm\TTwoChildrenExpressionType $or |
||
967 | * @return self |
||
968 | */ |
||
969 | public function setOr(\MetadataV4\edm\TTwoChildrenExpressionType $or) |
||
974 | |||
975 | /** |
||
976 | * Gets as not |
||
977 | * |
||
978 | * @return \MetadataV4\edm\TOneChildExpressionType |
||
979 | */ |
||
980 | public function getNot() |
||
984 | |||
985 | /** |
||
986 | * Sets a new not |
||
987 | * |
||
988 | * @param \MetadataV4\edm\TOneChildExpressionType $not |
||
989 | * @return self |
||
990 | */ |
||
991 | public function setNot(\MetadataV4\edm\TOneChildExpressionType $not) |
||
996 | |||
997 | /** |
||
998 | * Gets as isOf |
||
999 | * |
||
1000 | * @return \MetadataV4\edm\TCastOrIsOfExpressionType |
||
1001 | */ |
||
1002 | public function getIsOf() |
||
1006 | |||
1007 | /** |
||
1008 | * Sets a new isOf |
||
1009 | * |
||
1010 | * @param \MetadataV4\edm\TCastOrIsOfExpressionType $isOf |
||
1011 | * @return self |
||
1012 | */ |
||
1013 | public function setIsOf(\MetadataV4\edm\TCastOrIsOfExpressionType $isOf) |
||
1018 | |||
1019 | /** |
||
1020 | * Gets as labeledElement |
||
1021 | * |
||
1022 | * @return \MetadataV4\edm\TLabeledElementExpressionType |
||
1023 | */ |
||
1024 | public function getLabeledElement() |
||
1028 | |||
1029 | /** |
||
1030 | * Sets a new labeledElement |
||
1031 | * |
||
1032 | * @param \MetadataV4\edm\TLabeledElementExpressionType $labeledElement |
||
1033 | * @return self |
||
1034 | */ |
||
1035 | public function setLabeledElement(\MetadataV4\edm\TLabeledElementExpressionType $labeledElement) |
||
1040 | |||
1041 | /** |
||
1042 | * Gets as labeledElementReference |
||
1043 | * |
||
1044 | * @return string |
||
1045 | */ |
||
1046 | public function getLabeledElementReference() |
||
1050 | |||
1051 | /** |
||
1052 | * Sets a new labeledElementReference |
||
1053 | * |
||
1054 | * @param string $labeledElementReference |
||
1055 | * @return self |
||
1056 | */ |
||
1057 | public function setLabeledElementReference($labeledElementReference) |
||
1062 | |||
1063 | /** |
||
1064 | * Adds as annotation |
||
1065 | * |
||
1066 | * @return self |
||
1067 | * @param \MetadataV4\edm\Annotation $annotation |
||
1068 | */ |
||
1069 | public function addToNull(\MetadataV4\edm\Annotation $annotation) |
||
1074 | |||
1075 | /** |
||
1076 | * isset null |
||
1077 | * |
||
1078 | * @param scalar $index |
||
1079 | * @return boolean |
||
1080 | */ |
||
1081 | public function issetNull($index) |
||
1085 | |||
1086 | /** |
||
1087 | * unset null |
||
1088 | * |
||
1089 | * @param scalar $index |
||
1090 | * @return void |
||
1091 | */ |
||
1092 | public function unsetNull($index) |
||
1096 | |||
1097 | /** |
||
1098 | * Gets as null |
||
1099 | * |
||
1100 | * @return \MetadataV4\edm\Annotation[] |
||
1101 | */ |
||
1102 | public function getNull() |
||
1106 | |||
1107 | /** |
||
1108 | * Sets a new null |
||
1109 | * |
||
1110 | * @param \MetadataV4\edm\Annotation[] $null |
||
1111 | * @return self |
||
1112 | */ |
||
1113 | public function setNull(array $null) |
||
1118 | |||
1119 | /** |
||
1120 | * Gets as record |
||
1121 | * |
||
1122 | * @return \MetadataV4\edm\TRecordExpressionType |
||
1123 | */ |
||
1124 | public function getRecord() |
||
1128 | |||
1129 | /** |
||
1130 | * Sets a new record |
||
1131 | * |
||
1132 | * @param \MetadataV4\edm\TRecordExpressionType $record |
||
1133 | * @return self |
||
1134 | */ |
||
1135 | public function setRecord(\MetadataV4\edm\TRecordExpressionType $record) |
||
1140 | } |
||
1141 |