Akeneo\Component\SpreadsheetParser\Xlsx\Relationships::__construct PHP Method

__construct() public method

Constructor
public __construct ( string $path )
$path string the path to the XML relationships file
    public function __construct($path)
    {
        parent::__construct($path);
        $xml = $this->getXMLReader();
        while ($xml->read()) {
            if (\XMLReader::ELEMENT === $xml->nodeType && 'Relationship' === $xml->name) {
                $type = basename((string) $xml->getAttribute('Type'));
                $this->storeRelationShipByType($type, $xml->getAttribute('Id'), 'xl/' . $xml->getAttribute('Target'));
            }
        }
        $this->closeXMLReader();
    }