Skip to content

Commit 9564078

Browse files
authored
Merge pull request #26 from bird-system/master
add schema version property.
2 parents 063eeb7 + d7ef928 commit 9564078

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

DHL/Entity/Base.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ abstract class Base extends BaseDataType
9090
*/
9191
protected $_isSubobject = null;
9292

93+
/**
94+
* @var string
95+
* The schema version
96+
*/
97+
protected $_schemaVersion = '1.0';
98+
9399
/**
94100
* @var boolean
95101
* Render the schema version or not
@@ -140,7 +146,7 @@ public function toXML(\XMLWriter $xmlWriter = null)
140146

141147
if ($this->_displaySchemaVersion)
142148
{
143-
$xmlWriter->writeAttribute('schemaVersion', '1.0');
149+
$xmlWriter->writeAttribute('schemaVersion', $this->_schemaVersion);
144150
}
145151

146152
if (null !== $this->_xmlNodeName)

DHL/Entity/GB/ShipmentRequest.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ class ShipmentRequest extends Base
4848
*/
4949
protected $_serviceXSD = 'ShipmentRequest.xsd';
5050

51+
/**
52+
* @var string
53+
* The schema version
54+
*/
55+
protected $_schemaVersion = '1.0';
56+
5157
/**
5258
* Display the schema version
5359
* @var boolean
@@ -178,7 +184,12 @@ class ShipmentRequest extends Base
178184
'type' => 'string',
179185
'required' => false,
180186
'subobject' => false,
181-
),
187+
),
188+
'NumberOfArchiveDoc' => array(
189+
'type' => 'integer',
190+
'required' => false,
191+
'subobject' => false,
192+
),
182193
'Label' => array(
183194
'type' => 'Label',
184195
'required' => false,

0 commit comments

Comments
 (0)