for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* TechDivision\Import\Product\Grouped\Ee\Observers\EeGroupedProductRelationObserver
*
* NOTICE OF LICENSE
* This source file is subject to the Open Software License (OSL 3.0)
* that is available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* PHP version 5
* @author Tim Wagner <[email protected]>
* @copyright 2016 TechDivision GmbH <[email protected]>
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* @link https://github.com/techdivision/import-product-grouped-ee
* @link http://www.techdivision.com
*/
namespace TechDivision\Import\Product\Grouped\Ee\Observers;
use TechDivision\Import\Product\Grouped\Observers\GroupedProductRelationObserver;
* Observer that provides extended mapping functionality to map a SKU to a row ID (EE Feature).
class EeGroupedProductRelationObserver extends GroupedProductRelationObserver
{
* Return the row ID for the passed SKU.
* @param string $sku The SKU to return the row ID for
* @return integer The mapped row ID
* @throws \Exception Is thrown if the SKU is not mapped yet
protected function mapSku($sku)
return $this->getSubject()->mapSkuToRowId($sku);
}