src/Subjects/EeVariantSubject.php
public function mapSkuToRowId($sku)
    {

        // query weather or not the SKU has been mapped
        if (isset($this->skuRowIdMapping[$sku])) {
            return $this->skuRowIdMapping[$sku];
        }

        // throw an exception if the SKU has not been mapped yet
        throw new \Exception(sprintf('Found not mapped SKU %s', $sku));
    }
public function mapSkuToRowId($sku)
    {

        // query weather or not the SKU has been mapped
        if (isset($this->skuRowIdMapping[$sku])) {
            return $this->skuRowIdMapping[$sku];
        }

        // throw an exception if the SKU has not been mapped yet
        throw new \Exception(sprintf('Found not mapped SKU %s', $sku));
    }
public function mapSkuToRowId ( $ sku ) { // query weather or not the SKU has been mapped if ( isset ( $ this -> skuRowIdMapping [ $ sku ] ) ) { return $ this -> skuRowIdMapping [ $ sku ] ; } // throw an exception if the SKU has not been mapped yet throw new \ Exception ( sprintf ( 'Found not mapped SKU %s' , $ sku ) ) ; }
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
Return the row ID for the passed SKU .