public getParsedData ( string $sourcePath ) : array | ||
$sourcePath | string | An absolute path to XML file |
return | array | Parsed XML file |
public function getParsedData($sourcePath)
{
if (!isset($this->parsedFiles[$sourcePath])) {
$this->parsedFiles[$sourcePath] = $this->parseXmlFile($sourcePath);
}
return $this->parsedFiles[$sourcePath];
}