src/Entity/AccessPointCOD.php 1 location
|
@@ 31-43 (lines=13) @@
|
28 |
|
* |
29 |
|
* @return DOMElement |
30 |
|
*/ |
31 |
|
public function toNode(DOMDocument $document = null) |
32 |
|
{ |
33 |
|
if (null === $document) { |
34 |
|
$document = new DOMDocument(); |
35 |
|
} |
36 |
|
|
37 |
|
$node = $document->createElement('AccessPointCOD'); |
38 |
|
|
39 |
|
$node->appendChild($document->createElement('CurrencyCode', $this->getCurrencyCode())); |
40 |
|
$node->appendChild($document->createElement('MonetaryValue', $this->getMonetaryValue())); |
41 |
|
|
42 |
|
return $node; |
43 |
|
} |
44 |
|
|
45 |
|
/** |
46 |
|
* @return string |
src/Entity/InsuredValue.php 1 location
|
@@ 43-54 (lines=12) @@
|
40 |
|
* |
41 |
|
* @return DOMElement |
42 |
|
*/ |
43 |
|
public function toNode(DOMDocument $document = null) |
44 |
|
{ |
45 |
|
if (null === $document) { |
46 |
|
$document = new DOMDocument(); |
47 |
|
} |
48 |
|
|
49 |
|
$node = $document->createElement('InsuredValue'); |
50 |
|
$node->appendChild($document->createElement('CurrencyCode', $this->getCurrencyCode())); |
51 |
|
$node->appendChild($document->createElement('MonetaryValue', $this->getMonetaryValue())); |
52 |
|
|
53 |
|
return $node; |
54 |
|
} |
55 |
|
|
56 |
|
/** |
57 |
|
* @return string|null |
src/Entity/InvoiceLineTotal.php 1 location
|
@@ 31-46 (lines=16) @@
|
28 |
|
* |
29 |
|
* @return DOMElement |
30 |
|
*/ |
31 |
|
public function toNode(DOMDocument $document = null) |
32 |
|
{ |
33 |
|
if (null === $document) { |
34 |
|
$document = new DOMDocument(); |
35 |
|
} |
36 |
|
|
37 |
|
$node = $document->createElement('InvoiceLineTotal'); |
38 |
|
|
39 |
|
if ($this->getCurrencyCode()) { |
40 |
|
$node->appendChild($document->createElement('CurrencyCode', $this->getCurrencyCode())); |
41 |
|
} |
42 |
|
|
43 |
|
$node->appendChild($document->createElement('MonetaryValue', $this->getMonetaryValue())); |
44 |
|
|
45 |
|
return $node; |
46 |
|
} |
47 |
|
|
48 |
|
public function getCurrencyCode() |
49 |
|
{ |
src/Entity/Tradeability/FreightCharges.php 1 location
|
@@ 28-39 (lines=12) @@
|
25 |
|
* |
26 |
|
* @return DOMElement |
27 |
|
*/ |
28 |
|
public function toNode(DOMDocument $document = null) |
29 |
|
{ |
30 |
|
if (null === $document) { |
31 |
|
$document = new DOMDocument(); |
32 |
|
} |
33 |
|
|
34 |
|
$node = $document->createElement('FreightCharges'); |
35 |
|
$node->appendChild($document->createElement('MonetaryValue', $this->getMonetaryValue())); |
36 |
|
$node->appendChild($document->createElement('CurrencyCode', $this->getCurrencyCode())); |
37 |
|
|
38 |
|
return $node; |
39 |
|
} |
40 |
|
|
41 |
|
/** |
42 |
|
* @return mixed |
src/Entity/Tradeability/UnitPrice.php 1 location
|
@@ 30-47 (lines=18) @@
|
27 |
|
* |
28 |
|
* @return DOMElement |
29 |
|
*/ |
30 |
|
public function toNode(DOMDocument $document = null) |
31 |
|
{ |
32 |
|
if (null === $document) { |
33 |
|
$document = new DOMDocument(); |
34 |
|
} |
35 |
|
|
36 |
|
$node = $document->createElement('UnitPrice'); |
37 |
|
|
38 |
|
// Required |
39 |
|
$node->appendChild($document->createElement('MonetaryValue', $this->getMonetaryValue())); |
40 |
|
|
41 |
|
// Optional |
42 |
|
if ($this->getCurrencyCode() !== null) { |
43 |
|
$node->appendChild($document->createElement('CurrencyCode', $this->getCurrencyCode())); |
44 |
|
} |
45 |
|
|
46 |
|
return $node; |
47 |
|
} |
48 |
|
|
49 |
|
/** |
50 |
|
* @return float |