diff --git a/src/EnvReader/XmlStructure/AttributeSingleXmlStructure.php b/src/EnvReader/XmlStructure/AttributeSingleXmlStructure.php new file mode 100644 index 0000000..4050289 --- /dev/null +++ b/src/EnvReader/XmlStructure/AttributeSingleXmlStructure.php @@ -0,0 +1,31 @@ +attributeName = $attributeName; + } + + /** + * @inheritDoc + */ + public function parseXml (SimpleXMLElement $xmlNode): string { + return (string)$xmlNode[$this->attributeName]; + } +} \ No newline at end of file