1 | <?php namespace BuildR\TestTools\DataSetLoader\XML\Helper; |
||
20 | class SimpleXMLNodeTypedAttributeGetter { |
||
21 | |||
22 | /** |
||
23 | * @type \SimpleXMLElement |
||
24 | */ |
||
25 | private $element; |
||
26 | |||
27 | /** |
||
28 | * SimpleXMLNodeTypedAttributeGetter constructor. |
||
29 | * This is the standard definition <dataSetProperty /> nodes. |
||
30 | * |
||
31 | * @param \SimpleXMLElement $element |
||
32 | */ |
||
33 | public function __construct(SimpleXMLElement $element) { |
||
36 | |||
37 | /** |
||
38 | * Post-processing the node value by additionally specified type |
||
39 | * declaration. If no type is defined, values returned as string. |
||
40 | * |
||
41 | * @return bool|float|int|string |
||
42 | */ |
||
43 | public function getValue() { |
||
69 | |||
70 | /** |
||
71 | * Returns the node name. If the node not defines 'name' |
||
72 | * attribute an empty string will be returned. |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | public function getName() { |
||
79 | |||
80 | } |
||
81 |