protected function overrideArtefacts($type, array $artefacts)
    {
        foreach ($artefacts as $key => $artefact) {
            $this->artefacs[$type][$this->getLastEntityId()][$key] = $artefact;
        }
    }
protected function overrideArtefacts($type, array $artefacts)
    {
        foreach ($artefacts as $key => $artefact) {
            $this->artefacs[$type][$this->getLastEntityId()][$key] = $artefact;
        }
    }
protected function overrideArtefacts ( $ type , array $ artefacts ) { foreach ( $ artefacts as $ key => $ artefact ) { $ this -> artefacs [ $ type ] [ $ this -> getLastEntityId ( ) ] [ $ key ] = $ artefact ; } }
Add the passed product type artefacts to the product with the
last entity ID and overrides existing ones with the same key.

@param string $type      The artefact type, e. g. configurable
@param array  $artefacts The product type artefacts

@return void
Add the passed product type artefacts to the product with the last entity ID and overrides existing ones with the same key .