6
6
* This class was generated with the PHPFHIR library (https://github.com/dcarbone/php-fhir) using
7
7
* class definitions from HL7 FHIR (https://www.hl7.org/fhir/)
8
8
*
9
- * Class creation date: August 22nd , 2024 02:47 +0000
9
+ * Class creation date: August 30th , 2024 22:23 +0000
10
10
*
11
11
* PHPFHIR Copyright:
12
12
*
@@ -90,7 +90,7 @@ class FHIRBinary implements PHPFHIRCommentContainerInterface, PHPFHIRContainedTy
90
90
];
91
91
92
92
/** @var array */
93
- private array $ _primitiveXmlLocations = [];
93
+ private array $ _xmlLocations = [];
94
94
95
95
/**
96
96
* FHIRBinary Constructor
@@ -160,10 +160,10 @@ public function setContentType(null|string|FHIRStringPrimitive $contentType = nu
160
160
$ contentType = new FHIRStringPrimitive ($ contentType );
161
161
}
162
162
$ this ->_trackValueSet ($ this ->contentType , $ contentType );
163
- if (!isset ($ this ->_primitiveXmlLocations [self ::FIELD_CONTENT_TYPE ])) {
164
- $ this ->_primitiveXmlLocations [self ::FIELD_CONTENT_TYPE ] = [];
163
+ if (!isset ($ this ->_xmlLocations [self ::FIELD_CONTENT_TYPE ])) {
164
+ $ this ->_xmlLocations [self ::FIELD_CONTENT_TYPE ] = [];
165
165
}
166
- $ this ->_primitiveXmlLocations [self ::FIELD_CONTENT_TYPE ][0 ] = $ xmlLocation ;
166
+ $ this ->_xmlLocations [self ::FIELD_CONTENT_TYPE ][0 ] = $ xmlLocation ;
167
167
$ this ->contentType = $ contentType ;
168
168
return $ this ;
169
169
}
@@ -187,10 +187,10 @@ public function setId(null|string|FHIRIdPrimitive $id = null, PHPFHIRXmlLocation
187
187
$ id = new FHIRIdPrimitive ($ id );
188
188
}
189
189
$ this ->_trackValueSet ($ this ->id , $ id );
190
- if (!isset ($ this ->_primitiveXmlLocations [self ::FIELD_ID ])) {
191
- $ this ->_primitiveXmlLocations [self ::FIELD_ID ] = [];
190
+ if (!isset ($ this ->_xmlLocations [self ::FIELD_ID ])) {
191
+ $ this ->_xmlLocations [self ::FIELD_ID ] = [];
192
192
}
193
- $ this ->_primitiveXmlLocations [self ::FIELD_ID ][0 ] = $ xmlLocation ;
193
+ $ this ->_xmlLocations [self ::FIELD_ID ][0 ] = $ xmlLocation ;
194
194
$ this ->id = $ id ;
195
195
return $ this ;
196
196
}
@@ -315,21 +315,21 @@ public function xmlSerialize(null|PHPFHIRXmlWriter $xw = null, null|int|PHPFHIRC
315
315
$ openedRoot = true ;
316
316
$ xw ->openRootNode ($ config , 'Binary ' , $ this ->_getSourceXmlns ());
317
317
}
318
- $ locs = $ this ->_primitiveXmlLocations [self ::FIELD_CONTENT_TYPE ] ?? [];
318
+ $ locs = $ this ->_xmlLocations [self ::FIELD_CONTENT_TYPE ] ?? [];
319
319
if (([] === $ locs || (isset ($ locs [0 ]) && PHPFHIRXmlLocationEnum::ATTRIBUTE === $ locs [0 ])) && null !== ($ v = $ this ->getContentType ())) {
320
320
$ xw ->writeAttribute (self ::FIELD_CONTENT_TYPE , $ v ->getFormattedValue ());
321
321
}
322
- $ locs = $ this ->_primitiveXmlLocations [self ::FIELD_ID ] ?? [];
322
+ $ locs = $ this ->_xmlLocations [self ::FIELD_ID ] ?? [];
323
323
if (([] === $ locs || (isset ($ locs [0 ]) && PHPFHIRXmlLocationEnum::ATTRIBUTE === $ locs [0 ])) && null !== ($ v = $ this ->getId ())) {
324
324
$ xw ->writeAttribute (self ::FIELD_ID , $ v ->getFormattedValue ());
325
325
}
326
- $ locs = $ this ->_primitiveXmlLocations [self ::FIELD_CONTENT_TYPE ] ?? [];
326
+ $ locs = $ this ->_xmlLocations [self ::FIELD_CONTENT_TYPE ] ?? [];
327
327
if (([] === $ locs || (isset ($ locs [0 ]) && PHPFHIRXmlLocationEnum::ELEMENT === $ locs [0 ])) && null !== ($ v = $ this ->getContentType ())) {
328
328
$ xw ->startElement (self ::FIELD_CONTENT_TYPE );
329
329
$ v ->xmlSerialize ($ xw , $ config );
330
330
$ xw ->endElement ();
331
331
}
332
- $ locs = $ this ->_primitiveXmlLocations [self ::FIELD_ID ] ?? [];
332
+ $ locs = $ this ->_xmlLocations [self ::FIELD_ID ] ?? [];
333
333
if (([] === $ locs || (isset ($ locs [0 ]) && PHPFHIRXmlLocationEnum::ELEMENT === $ locs [0 ])) && null !== ($ v = $ this ->getId ())) {
334
334
$ xw ->startElement (self ::FIELD_ID );
335
335
$ v ->xmlSerialize ($ xw , $ config );
0 commit comments