public function getParsedData(string $sourcePath)
    {
        if (!isset($this->parsedFiles[$sourcePath])) {
            $this->parsedFiles[$sourcePath] = $this->parseXmlFile($sourcePath);
        }

        return $this->parsedFiles[$sourcePath];
    }
public function getParsedData(string $sourcePath)
    {
        if (!isset($this->parsedFiles[$sourcePath])) {
            $this->parsedFiles[$sourcePath] = $this->parseXmlFile($sourcePath);
        }

        return $this->parsedFiles[$sourcePath];
    }
public function getParsedData ( string $ sourcePath ) { if ( ! isset ( $ this -> parsedFiles [ $ sourcePath ] ) ) { $ this -> parsedFiles [ $ sourcePath ] = $ this -> parseXmlFile ( $ sourcePath ) ; } return $ this -> parsedFiles [ $ sourcePath ] ; }
Returns parsed representation of XML file.

Parses XML if it wasn't done before. Caches parsed data.

@param string $sourcePath An absolute path to XML file
@return array Parsed XML file
Returns parsed representation of XML file .