Pricing/ItemPriceCalculator.php
private function retrieveProductTypeIdByKey($key)
    {
        if (!isset($this->productTypesMap[$key])) {
            return null;
        }

        return intval($this->productTypesMap[$key]);
    }
private function retrieveProductTypeIdByKey($key)
    {
        if (!isset($this->productTypesMap[$key])) {
            return null;
        }

        return intval($this->productTypesMap[$key]);
    }
private function retrieveProductTypeIdByKey ( $ key ) { if ( ! isset ( $ this -> productTypesMap [ $ key ] ) ) { return null ; } return intval ( $ this -> productTypesMap [ $ key ] ) ; }
Returns product type id by key.

@param string $key

@return int
Returns product type id by key .